lib

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package pkg comments for pkg lib lib ...

Index

Constants

View Source
const (
	TestInternalUser         = "test1@internal.local"
	TestInternalUserPassword = "123456"
)

Variables

This section is empty.

Functions

func HttpResponseWrapper

func HttpResponseWrapper(w http.ResponseWriter, cdc *amino.Codec, result interface{}, err error)

func ResponseWrapper

func ResponseWrapper(cdc *amino.Codec, result interface{}, err error) ([]byte, error)

Types

type HttpTest

type HttpTest struct {
	// contains filtered or unexported fields
}

func NewHttpTest

func NewHttpTest(t *testing.T, req *http.Request) *HttpTest

func (*HttpTest) Do

func (ht *HttpTest) Do(r http.Handler, cdc *amino.Codec, v interface{}) (*httptest.ResponseRecorder, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL