servermock

package
v0.0.0-...-15bed1d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package servermock is a generated GoMock package.

Package servermock is a generated GoMock package.

Package servermock is a generated GoMock package.

Package servermock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContext

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

MockContext is a mock of Context interface.

func NewMockContext

func NewMockContext(ctrl *gomock.Controller) *MockContext

NewMockContext creates a new mock instance.

func (*MockContext) Abort

func (m *MockContext) Abort()

Abort mocks base method.

func (*MockContext) AbortWithStatus

func (m *MockContext) AbortWithStatus(code int)

AbortWithStatus mocks base method.

func (*MockContext) AbortWithStatusJSON

func (m *MockContext) AbortWithStatusJSON(code int, jsonObj interface{})

AbortWithStatusJSON mocks base method.

func (*MockContext) Bind

func (m *MockContext) Bind(param interface{}) error

Bind mocks base method.

func (*MockContext) BindHeader

func (m *MockContext) BindHeader(obj interface{}) error

BindHeader mocks base method.

func (*MockContext) BindJSON

func (m *MockContext) BindJSON(param interface{}) error

BindJSON mocks base method.

func (*MockContext) BindQuery

func (m *MockContext) BindQuery(param interface{}) error

BindQuery mocks base method.

func (*MockContext) BindUri

func (m *MockContext) BindUri(param interface{}) error

BindUri mocks base method.

func (*MockContext) Context

func (m *MockContext) Context() context.Context

Context mocks base method.

func (*MockContext) EXPECT

func (m *MockContext) EXPECT() *MockContextMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockContext) Get

func (m *MockContext) Get(key string) (interface{}, bool)

Get mocks base method.

func (*MockContext) GetClaim

func (m *MockContext) GetClaim() *http.Claim

GetClaim mocks base method.

func (*MockContext) GetHeader

func (m *MockContext) GetHeader(key string) string

GetHeader mocks base method.

func (*MockContext) GinContext

func (m *MockContext) GinContext() *gin.Context

GinContext mocks base method.

func (*MockContext) HTML

func (m *MockContext) HTML(tmpl string, data interface{})

HTML mocks base method.

func (*MockContext) Header

func (m *MockContext) Header(key, value string)

Header mocks base method.

func (*MockContext) Next

func (m *MockContext) Next()

Next mocks base method.

func (*MockContext) Param

func (m *MockContext) Param(key string) string

Param mocks base method.

func (*MockContext) Send

func (m *MockContext) Send(data interface{}, err error)

Send mocks base method.

func (*MockContext) SendErr

func (m *MockContext) SendErr(err error)

SendErr mocks base method.

func (*MockContext) SendErrCode

func (m *MockContext) SendErrCode(errcode int)

SendErrCode mocks base method.

func (*MockContext) SendInternalErr

func (m *MockContext) SendInternalErr(err ...error)

SendInternalErr mocks base method.

func (*MockContext) SendOk

func (m *MockContext) SendOk(data ...interface{})

SendOk mocks base method.

func (*MockContext) SendParamErr

func (m *MockContext) SendParamErr(err ...error)

SendParamErr mocks base method.

func (*MockContext) Set

func (m *MockContext) Set(key string, value interface{})

Set mocks base method.

func (*MockContext) SetClaim

func (m *MockContext) SetClaim(claim *http.Claim)

SetClaim mocks base method.

func (*MockContext) Stream

func (m *MockContext) Stream(closer io.ReadCloser)

Stream mocks base method.

type MockContextMockRecorder

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

MockContextMockRecorder is the mock recorder for MockContext.

func (*MockContextMockRecorder) Abort

func (mr *MockContextMockRecorder) Abort() *gomock.Call

Abort indicates an expected call of Abort.

func (*MockContextMockRecorder) AbortWithStatus

func (mr *MockContextMockRecorder) AbortWithStatus(code interface{}) *gomock.Call

AbortWithStatus indicates an expected call of AbortWithStatus.

func (*MockContextMockRecorder) AbortWithStatusJSON

func (mr *MockContextMockRecorder) AbortWithStatusJSON(code, jsonObj interface{}) *gomock.Call

AbortWithStatusJSON indicates an expected call of AbortWithStatusJSON.

func (*MockContextMockRecorder) Bind

func (mr *MockContextMockRecorder) Bind(param interface{}) *gomock.Call

Bind indicates an expected call of Bind.

func (*MockContextMockRecorder) BindHeader

func (mr *MockContextMockRecorder) BindHeader(obj interface{}) *gomock.Call

BindHeader indicates an expected call of BindHeader.

func (*MockContextMockRecorder) BindJSON

func (mr *MockContextMockRecorder) BindJSON(param interface{}) *gomock.Call

BindJSON indicates an expected call of BindJSON.

func (*MockContextMockRecorder) BindQuery

func (mr *MockContextMockRecorder) BindQuery(param interface{}) *gomock.Call

BindQuery indicates an expected call of BindQuery.

func (*MockContextMockRecorder) BindUri

func (mr *MockContextMockRecorder) BindUri(param interface{}) *gomock.Call

BindUri indicates an expected call of BindUri.

func (*MockContextMockRecorder) Context

func (mr *MockContextMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context.

func (*MockContextMockRecorder) Get

func (mr *MockContextMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockContextMockRecorder) GetClaim

func (mr *MockContextMockRecorder) GetClaim() *gomock.Call

GetClaim indicates an expected call of GetClaim.

func (*MockContextMockRecorder) GetHeader

func (mr *MockContextMockRecorder) GetHeader(key interface{}) *gomock.Call

GetHeader indicates an expected call of GetHeader.

func (*MockContextMockRecorder) GinContext

func (mr *MockContextMockRecorder) GinContext() *gomock.Call

GinContext indicates an expected call of GinContext.

func (*MockContextMockRecorder) HTML

func (mr *MockContextMockRecorder) HTML(tmpl, data interface{}) *gomock.Call

HTML indicates an expected call of HTML.

func (*MockContextMockRecorder) Header

func (mr *MockContextMockRecorder) Header(key, value interface{}) *gomock.Call

Header indicates an expected call of Header.

func (*MockContextMockRecorder) Next

func (mr *MockContextMockRecorder) Next() *gomock.Call

Next indicates an expected call of Next.

func (*MockContextMockRecorder) Param

func (mr *MockContextMockRecorder) Param(key interface{}) *gomock.Call

Param indicates an expected call of Param.

func (*MockContextMockRecorder) Send

func (mr *MockContextMockRecorder) Send(data, err interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockContextMockRecorder) SendErr

func (mr *MockContextMockRecorder) SendErr(err interface{}) *gomock.Call

SendErr indicates an expected call of SendErr.

func (*MockContextMockRecorder) SendErrCode

func (mr *MockContextMockRecorder) SendErrCode(errcode interface{}) *gomock.Call

SendErrCode indicates an expected call of SendErrCode.

func (*MockContextMockRecorder) SendInternalErr

func (mr *MockContextMockRecorder) SendInternalErr(err ...interface{}) *gomock.Call

SendInternalErr indicates an expected call of SendInternalErr.

func (*MockContextMockRecorder) SendOk

func (mr *MockContextMockRecorder) SendOk(data ...interface{}) *gomock.Call

SendOk indicates an expected call of SendOk.

func (*MockContextMockRecorder) SendParamErr

func (mr *MockContextMockRecorder) SendParamErr(err ...interface{}) *gomock.Call

SendParamErr indicates an expected call of SendParamErr.

func (*MockContextMockRecorder) Set

func (mr *MockContextMockRecorder) Set(key, value interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockContextMockRecorder) SetClaim

func (mr *MockContextMockRecorder) SetClaim(claim interface{}) *gomock.Call

SetClaim indicates an expected call of SetClaim.

func (*MockContextMockRecorder) Stream

func (mr *MockContextMockRecorder) Stream(closer interface{}) *gomock.Call

Stream indicates an expected call of Stream.

type MockEngine

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

MockEngine is a mock of Engine interface.

func NewMockEngine

func NewMockEngine(ctrl *gomock.Controller) *MockEngine

NewMockEngine creates a new mock instance.

func (*MockEngine) EXPECT

func (m *MockEngine) EXPECT() *MockEngineMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEngine) Run

func (m *MockEngine) Run(clean func()) error

Run mocks base method.

func (*MockEngine) Shutdown

func (m *MockEngine) Shutdown() error

Shutdown mocks base method.

type MockEngineMockRecorder

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

MockEngineMockRecorder is the mock recorder for MockEngine.

func (*MockEngineMockRecorder) Run

func (mr *MockEngineMockRecorder) Run(clean interface{}) *gomock.Call

Run indicates an expected call of Run.

func (*MockEngineMockRecorder) Shutdown

func (mr *MockEngineMockRecorder) Shutdown() *gomock.Call

Shutdown indicates an expected call of Shutdown.

type MockIRoutes

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

MockIRoutes is a mock of IRoutes interface.

func NewMockIRoutes

func NewMockIRoutes(ctrl *gomock.Controller) *MockIRoutes

NewMockIRoutes creates a new mock instance.

func (*MockIRoutes) Any

func (m *MockIRoutes) Any(arg0 string, arg1 ...http.HandlerFunc)

Any mocks base method.

func (*MockIRoutes) Context

func (m *MockIRoutes) Context() context.Context

Context mocks base method.

func (*MockIRoutes) DELETE

func (m *MockIRoutes) DELETE(arg0 string, arg1 ...http.HandlerFunc)

DELETE mocks base method.

func (*MockIRoutes) EXPECT

func (m *MockIRoutes) EXPECT() *MockIRoutesMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIRoutes) GET

func (m *MockIRoutes) GET(arg0 string, arg1 ...http.HandlerFunc)

GET mocks base method.

func (*MockIRoutes) Group

func (m *MockIRoutes) Group(arg0 string, arg1 ...http.HandlerFunc) http.IRoutes

Group mocks base method.

func (*MockIRoutes) HEAD

func (m *MockIRoutes) HEAD(arg0 string, arg1 ...http.HandlerFunc)

HEAD mocks base method.

func (*MockIRoutes) Handle

func (m *MockIRoutes) Handle(arg0, arg1 string, arg2 ...http.HandlerFunc)

Handle mocks base method.

func (*MockIRoutes) OPTIONS

func (m *MockIRoutes) OPTIONS(arg0 string, arg1 ...http.HandlerFunc)

OPTIONS mocks base method.

func (*MockIRoutes) PATCH

func (m *MockIRoutes) PATCH(arg0 string, arg1 ...http.HandlerFunc)

PATCH mocks base method.

func (*MockIRoutes) POST

func (m *MockIRoutes) POST(arg0 string, arg1 ...http.HandlerFunc)

POST mocks base method.

func (*MockIRoutes) PUT

func (m *MockIRoutes) PUT(arg0 string, arg1 ...http.HandlerFunc)

PUT mocks base method.

func (*MockIRoutes) Static

func (m *MockIRoutes) Static(arg0, arg1 string)

Static mocks base method.

func (*MockIRoutes) StaticFS

func (m *MockIRoutes) StaticFS(arg0 string, arg1 http0.FileSystem)

StaticFS mocks base method.

func (*MockIRoutes) StaticFile

func (m *MockIRoutes) StaticFile(arg0, arg1 string)

StaticFile mocks base method.

func (*MockIRoutes) Use

func (m *MockIRoutes) Use(arg0 ...http.HandlerFunc)

Use mocks base method.

type MockIRoutesMockRecorder

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

MockIRoutesMockRecorder is the mock recorder for MockIRoutes.

func (*MockIRoutesMockRecorder) Any

func (mr *MockIRoutesMockRecorder) Any(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Any indicates an expected call of Any.

func (*MockIRoutesMockRecorder) Context

func (mr *MockIRoutesMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context.

func (*MockIRoutesMockRecorder) DELETE

func (mr *MockIRoutesMockRecorder) DELETE(arg0 interface{}, arg1 ...interface{}) *gomock.Call

DELETE indicates an expected call of DELETE.

func (*MockIRoutesMockRecorder) GET

func (mr *MockIRoutesMockRecorder) GET(arg0 interface{}, arg1 ...interface{}) *gomock.Call

GET indicates an expected call of GET.

func (*MockIRoutesMockRecorder) Group

func (mr *MockIRoutesMockRecorder) Group(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Group indicates an expected call of Group.

func (*MockIRoutesMockRecorder) HEAD

func (mr *MockIRoutesMockRecorder) HEAD(arg0 interface{}, arg1 ...interface{}) *gomock.Call

HEAD indicates an expected call of HEAD.

func (*MockIRoutesMockRecorder) Handle

func (mr *MockIRoutesMockRecorder) Handle(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Handle indicates an expected call of Handle.

func (*MockIRoutesMockRecorder) OPTIONS

func (mr *MockIRoutesMockRecorder) OPTIONS(arg0 interface{}, arg1 ...interface{}) *gomock.Call

OPTIONS indicates an expected call of OPTIONS.

func (*MockIRoutesMockRecorder) PATCH

func (mr *MockIRoutesMockRecorder) PATCH(arg0 interface{}, arg1 ...interface{}) *gomock.Call

PATCH indicates an expected call of PATCH.

func (*MockIRoutesMockRecorder) POST

func (mr *MockIRoutesMockRecorder) POST(arg0 interface{}, arg1 ...interface{}) *gomock.Call

POST indicates an expected call of POST.

func (*MockIRoutesMockRecorder) PUT

func (mr *MockIRoutesMockRecorder) PUT(arg0 interface{}, arg1 ...interface{}) *gomock.Call

PUT indicates an expected call of PUT.

func (*MockIRoutesMockRecorder) Static

func (mr *MockIRoutesMockRecorder) Static(arg0, arg1 interface{}) *gomock.Call

Static indicates an expected call of Static.

func (*MockIRoutesMockRecorder) StaticFS

func (mr *MockIRoutesMockRecorder) StaticFS(arg0, arg1 interface{}) *gomock.Call

StaticFS indicates an expected call of StaticFS.

func (*MockIRoutesMockRecorder) StaticFile

func (mr *MockIRoutesMockRecorder) StaticFile(arg0, arg1 interface{}) *gomock.Call

StaticFile indicates an expected call of StaticFile.

func (*MockIRoutesMockRecorder) Use

func (mr *MockIRoutesMockRecorder) Use(arg0 ...interface{}) *gomock.Call

Use indicates an expected call of Use.

Jump to

Keyboard shortcuts

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