handler

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestUser

func CreateTestUser() error

func VersionGinRegister

func VersionGinRegister(r *gin.Engine)

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(f func(r *gin.Engine), v interface{}) (*httptest.ResponseRecorder, error)

func (*HttpTest) WithAuth

func (ht *HttpTest) WithAuth() *HttpTest

func (*HttpTest) WithLocalIP

func (ht *HttpTest) WithLocalIP() *HttpTest

func (*HttpTest) WithSession

func (ht *HttpTest) WithSession() *HttpTest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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