Documentation ¶
Index ¶
- type Context
- func (_m *Context) DecodeJSONBody(v interface{}) error
- func (_m *Context) GetAllowedOrigins() []string
- func (_m *Context) GetParam(key string) string
- func (_m *Context) GetQueryParam(key string) string
- func (_m *Context) GetRequest() *http.Request
- func (_m *Context) GetWriter() http.ResponseWriter
- func (_m *Context) JSONResponse(data interface{})
- func (_m *Context) Logger() *logrus.Logger
- func (_m *Context) RawResponse(raw []byte)
- func (_m *Context) SetHeader(_a0 string, _a1 string)
- func (_m *Context) Status(status int) stk.Context
- type HandlerFunc
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
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 ¶
DecodeJSONBody provides a mock function with given fields: v
func (*Context) GetAllowedOrigins ¶
GetAllowedOrigins provides a mock function with given fields:
func (*Context) GetQueryParam ¶
GetQueryParam provides a mock function with given fields: key
func (*Context) GetRequest ¶
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) RawResponse ¶
RawResponse provides a mock function with given fields: raw
type HandlerFunc ¶
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 ¶
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