Versions in this module Expand all Collapse all v1 v1.0.0 Jun 22, 2023 Changes in this version + type Context struct + func NewContext(t mockConstructorTestingTNewContext) *Context + func (_m *Context) Context() context.Context + func (_m *Context) Deadline() (time.Time, bool) + func (_m *Context) Done() <-chan struct{} + func (_m *Context) Err() error + func (_m *Context) Request() http.Request + func (_m *Context) Response() http.Response + func (_m *Context) Value(key interface{}) interface{} + func (_m *Context) WithValue(key string, value interface{}) + type RateLimiter struct + func NewRateLimiter(t mockConstructorTestingTNewRateLimiter) *RateLimiter + func (_m *RateLimiter) For(name string, callback func(http.Context) http.Limit) + func (_m *RateLimiter) ForWithLimits(name string, callback func(http.Context) []http.Limit) + func (_m *RateLimiter) Limiter(name string) func(http.Context) []http.Limit + type Request struct + func NewRequest(t mockConstructorTestingTNewRequest) *Request + func (_m *Request) AbortWithStatus(code int) + func (_m *Request) AbortWithStatusJson(code int, jsonObj interface{}) + func (_m *Request) Bind(obj interface{}) error + func (_m *Request) File(name string) (filesystem.File, error) + func (_m *Request) Form(key string, defaultValue ...string) string + func (_m *Request) FullUrl() string + func (_m *Request) Header(key string, defaultValue ...string) string + func (_m *Request) Headers() nethttp.Header + func (_m *Request) Input(key string, defaultValue ...string) string + func (_m *Request) InputBool(key string, defaultValue ...bool) bool + func (_m *Request) InputInt(key string, defaultValue ...int) int + func (_m *Request) InputInt64(key string, defaultValue ...int64) int64 + func (_m *Request) Ip() string + func (_m *Request) Json(key string, defaultValue ...string) string + func (_m *Request) Method() string + func (_m *Request) Next() + func (_m *Request) Origin() *nethttp.Request + func (_m *Request) Path() string + func (_m *Request) Query(key string, defaultValue ...string) string + func (_m *Request) QueryArray(key string) []string + func (_m *Request) QueryBool(key string, defaultValue ...bool) bool + func (_m *Request) QueryInt(key string, defaultValue ...int) int + func (_m *Request) QueryInt64(key string, defaultValue ...int64) int64 + func (_m *Request) QueryMap(key string) map[string]string + func (_m *Request) Route(key string) string + func (_m *Request) RouteInt(key string) int + func (_m *Request) RouteInt64(key string) int64 + func (_m *Request) Url() string + func (_m *Request) Validate(rules map[string]string, options ...validation.Option) (validation.Validator, error) + func (_m *Request) ValidateRequest(request http.FormRequest) (validation.Errors, error) + type Response struct + func NewResponse(t mockConstructorTestingTNewResponse) *Response + func (_m *Response) Data(code int, contentType string, data []byte) + func (_m *Response) Download(filepath string, filename string) + func (_m *Response) File(filepath string) + func (_m *Response) Header(key string, value string) http.Response + func (_m *Response) Json(code int, obj interface{}) + func (_m *Response) Origin() http.ResponseOrigin + func (_m *Response) Redirect(code int, location string) + func (_m *Response) String(code int, format string, values ...interface{}) + func (_m *Response) Success() http.ResponseSuccess + func (_m *Response) Writer() nethttp.ResponseWriter + type ResponseOrigin struct + func NewResponseOrigin(t mockConstructorTestingTNewResponseOrigin) *ResponseOrigin + func (_m *ResponseOrigin) Body() *bytes.Buffer + func (_m *ResponseOrigin) Header() nethttp.Header + func (_m *ResponseOrigin) Size() int + func (_m *ResponseOrigin) Status() int + type ResponseSuccess struct + func NewResponseSuccess(t mockConstructorTestingTNewResponseSuccess) *ResponseSuccess + func (_m *ResponseSuccess) Data(contentType string, data []byte) + func (_m *ResponseSuccess) Json(obj interface{}) + func (_m *ResponseSuccess) String(format string, values ...interface{})