mocks

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	mock.Mock
}

Context is an autogenerated mock type for the Context type

func NewContext

func NewContext(t mockConstructorTestingTNewContext) *Context

NewContext creates a new instance of Context. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Context) DecodeJSONBody

func (_m *Context) DecodeJSONBody(v interface{}) error

DecodeJSONBody provides a mock function with given fields: v

func (*Context) GetAllowedOrigins

func (_m *Context) GetAllowedOrigins() []string

GetAllowedOrigins provides a mock function with given fields:

func (*Context) GetParam

func (_m *Context) GetParam(key string) string

GetParam provides a mock function with given fields: key

func (*Context) GetQueryParam

func (_m *Context) GetQueryParam(key string) string

GetQueryParam provides a mock function with given fields: key

func (*Context) GetRequest

func (_m *Context) GetRequest() *http.Request

GetRequest provides a mock function with given fields:

func (*Context) GetWriter

func (_m *Context) GetWriter() http.ResponseWriter

GetWriter provides a mock function with given fields:

func (*Context) JSONResponse

func (_m *Context) JSONResponse(data interface{})

JSONResponse provides a mock function with given fields: data

func (*Context) Logger

func (_m *Context) Logger() *logrus.Logger

Logger provides a mock function with given fields:

func (*Context) RawResponse

func (_m *Context) RawResponse(raw []byte)

RawResponse provides a mock function with given fields: raw

func (*Context) SetHeader

func (_m *Context) SetHeader(_a0 string, _a1 string)

SetHeader provides a mock function with given fields: _a0, _a1

func (*Context) Status

func (_m *Context) Status(status int) stk.Context

Status provides a mock function with given fields: status

type HandlerFunc

type HandlerFunc struct {
	mock.Mock
}

HandlerFunc is an autogenerated mock type for the HandlerFunc type

func NewHandlerFunc

func NewHandlerFunc(t mockConstructorTestingTNewHandlerFunc) *HandlerFunc

NewHandlerFunc creates a new instance of HandlerFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HandlerFunc) Execute

func (_m *HandlerFunc) Execute(_a0 stk.Context)

Execute provides a mock function with given fields: _a0

type Middleware

type Middleware struct {
	mock.Mock
}

Middleware is an autogenerated mock type for the Middleware type

func NewMiddleware

func NewMiddleware(t mockConstructorTestingTNewMiddleware) *Middleware

NewMiddleware creates a new instance of Middleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Middleware) Execute

func (_m *Middleware) Execute(_a0 stk.HandlerFunc) stk.HandlerFunc

Execute provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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