Documentation
¶
Index ¶
- type Context
- func (_m *Context) Context() context.Context
- func (_m *Context) Deadline() (time.Time, bool)
- func (_m *Context) Done() <-chan struct{}
- func (_m *Context) EXPECT() *Context_Expecter
- func (_m *Context) Err() error
- func (_m *Context) Request() http.ContextRequest
- func (_m *Context) Response() http.ContextResponse
- func (_m *Context) Value(key interface{}) interface{}
- func (_m *Context) WithValue(key string, value interface{})
- type ContextRequest
- func (_m *ContextRequest) AbortWithStatus(code int)
- func (_m *ContextRequest) AbortWithStatusJson(code int, jsonObj interface{})
- func (_m *ContextRequest) All() map[string]interface{}
- func (_m *ContextRequest) Bind(obj interface{}) error
- func (_m *ContextRequest) Cookie(key string, defaultValue ...string) string
- func (_m *ContextRequest) EXPECT() *ContextRequest_Expecter
- func (_m *ContextRequest) File(name string) (filesystem.File, error)
- func (_m *ContextRequest) FullUrl() string
- func (_m *ContextRequest) HasSession() bool
- func (_m *ContextRequest) Header(key string, defaultValue ...string) string
- func (_m *ContextRequest) Headers() nethttp.Header
- func (_m *ContextRequest) Host() string
- func (_m *ContextRequest) Input(key string, defaultValue ...string) string
- func (_m *ContextRequest) InputArray(key string, defaultValue ...[]string) []string
- func (_m *ContextRequest) InputBool(key string, defaultValue ...bool) bool
- func (_m *ContextRequest) InputInt(key string, defaultValue ...int) int
- func (_m *ContextRequest) InputInt64(key string, defaultValue ...int64) int64
- func (_m *ContextRequest) InputMap(key string, defaultValue ...map[string]string) map[string]string
- func (_m *ContextRequest) Ip() string
- func (_m *ContextRequest) Method() string
- func (_m *ContextRequest) Next()
- func (_m *ContextRequest) Origin() *nethttp.Request
- func (_m *ContextRequest) Path() string
- func (_m *ContextRequest) Queries() map[string]string
- func (_m *ContextRequest) Query(key string, defaultValue ...string) string
- func (_m *ContextRequest) QueryArray(key string) []string
- func (_m *ContextRequest) QueryBool(key string, defaultValue ...bool) bool
- func (_m *ContextRequest) QueryInt(key string, defaultValue ...int) int
- func (_m *ContextRequest) QueryInt64(key string, defaultValue ...int64) int64
- func (_m *ContextRequest) QueryMap(key string) map[string]string
- func (_m *ContextRequest) Route(key string) string
- func (_m *ContextRequest) RouteInt(key string) int
- func (_m *ContextRequest) RouteInt64(key string) int64
- func (_m *ContextRequest) Session() session.Session
- func (_m *ContextRequest) SetSession(_a0 session.Session) http.ContextRequest
- func (_m *ContextRequest) Url() string
- func (_m *ContextRequest) Validate(rules map[string]string, options ...validation.Option) (validation.Validator, error)
- func (_m *ContextRequest) ValidateRequest(request http.FormRequest) (validation.Errors, error)
- type ContextRequest_AbortWithStatusJson_Call
- func (_c *ContextRequest_AbortWithStatusJson_Call) Return() *ContextRequest_AbortWithStatusJson_Call
- func (_c *ContextRequest_AbortWithStatusJson_Call) Run(run func(code int, jsonObj interface{})) *ContextRequest_AbortWithStatusJson_Call
- func (_c *ContextRequest_AbortWithStatusJson_Call) RunAndReturn(run func(int, interface{})) *ContextRequest_AbortWithStatusJson_Call
- type ContextRequest_AbortWithStatus_Call
- func (_c *ContextRequest_AbortWithStatus_Call) Return() *ContextRequest_AbortWithStatus_Call
- func (_c *ContextRequest_AbortWithStatus_Call) Run(run func(code int)) *ContextRequest_AbortWithStatus_Call
- func (_c *ContextRequest_AbortWithStatus_Call) RunAndReturn(run func(int)) *ContextRequest_AbortWithStatus_Call
- type ContextRequest_All_Call
- type ContextRequest_Bind_Call
- type ContextRequest_Cookie_Call
- func (_c *ContextRequest_Cookie_Call) Return(_a0 string) *ContextRequest_Cookie_Call
- func (_c *ContextRequest_Cookie_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Cookie_Call
- func (_c *ContextRequest_Cookie_Call) RunAndReturn(run func(string, ...string) string) *ContextRequest_Cookie_Call
- type ContextRequest_Expecter
- func (_e *ContextRequest_Expecter) AbortWithStatus(code interface{}) *ContextRequest_AbortWithStatus_Call
- func (_e *ContextRequest_Expecter) AbortWithStatusJson(code interface{}, jsonObj interface{}) *ContextRequest_AbortWithStatusJson_Call
- func (_e *ContextRequest_Expecter) All() *ContextRequest_All_Call
- func (_e *ContextRequest_Expecter) Bind(obj interface{}) *ContextRequest_Bind_Call
- func (_e *ContextRequest_Expecter) Cookie(key interface{}, defaultValue ...interface{}) *ContextRequest_Cookie_Call
- func (_e *ContextRequest_Expecter) File(name interface{}) *ContextRequest_File_Call
- func (_e *ContextRequest_Expecter) FullUrl() *ContextRequest_FullUrl_Call
- func (_e *ContextRequest_Expecter) HasSession() *ContextRequest_HasSession_Call
- func (_e *ContextRequest_Expecter) Header(key interface{}, defaultValue ...interface{}) *ContextRequest_Header_Call
- func (_e *ContextRequest_Expecter) Headers() *ContextRequest_Headers_Call
- func (_e *ContextRequest_Expecter) Host() *ContextRequest_Host_Call
- func (_e *ContextRequest_Expecter) Input(key interface{}, defaultValue ...interface{}) *ContextRequest_Input_Call
- func (_e *ContextRequest_Expecter) InputArray(key interface{}, defaultValue ...interface{}) *ContextRequest_InputArray_Call
- func (_e *ContextRequest_Expecter) InputBool(key interface{}, defaultValue ...interface{}) *ContextRequest_InputBool_Call
- func (_e *ContextRequest_Expecter) InputInt(key interface{}, defaultValue ...interface{}) *ContextRequest_InputInt_Call
- func (_e *ContextRequest_Expecter) InputInt64(key interface{}, defaultValue ...interface{}) *ContextRequest_InputInt64_Call
- func (_e *ContextRequest_Expecter) InputMap(key interface{}, defaultValue ...interface{}) *ContextRequest_InputMap_Call
- func (_e *ContextRequest_Expecter) Ip() *ContextRequest_Ip_Call
- func (_e *ContextRequest_Expecter) Method() *ContextRequest_Method_Call
- func (_e *ContextRequest_Expecter) Next() *ContextRequest_Next_Call
- func (_e *ContextRequest_Expecter) Origin() *ContextRequest_Origin_Call
- func (_e *ContextRequest_Expecter) Path() *ContextRequest_Path_Call
- func (_e *ContextRequest_Expecter) Queries() *ContextRequest_Queries_Call
- func (_e *ContextRequest_Expecter) Query(key interface{}, defaultValue ...interface{}) *ContextRequest_Query_Call
- func (_e *ContextRequest_Expecter) QueryArray(key interface{}) *ContextRequest_QueryArray_Call
- func (_e *ContextRequest_Expecter) QueryBool(key interface{}, defaultValue ...interface{}) *ContextRequest_QueryBool_Call
- func (_e *ContextRequest_Expecter) QueryInt(key interface{}, defaultValue ...interface{}) *ContextRequest_QueryInt_Call
- func (_e *ContextRequest_Expecter) QueryInt64(key interface{}, defaultValue ...interface{}) *ContextRequest_QueryInt64_Call
- func (_e *ContextRequest_Expecter) QueryMap(key interface{}) *ContextRequest_QueryMap_Call
- func (_e *ContextRequest_Expecter) Route(key interface{}) *ContextRequest_Route_Call
- func (_e *ContextRequest_Expecter) RouteInt(key interface{}) *ContextRequest_RouteInt_Call
- func (_e *ContextRequest_Expecter) RouteInt64(key interface{}) *ContextRequest_RouteInt64_Call
- func (_e *ContextRequest_Expecter) Session() *ContextRequest_Session_Call
- func (_e *ContextRequest_Expecter) SetSession(_a0 interface{}) *ContextRequest_SetSession_Call
- func (_e *ContextRequest_Expecter) Url() *ContextRequest_Url_Call
- func (_e *ContextRequest_Expecter) Validate(rules interface{}, options ...interface{}) *ContextRequest_Validate_Call
- func (_e *ContextRequest_Expecter) ValidateRequest(request interface{}) *ContextRequest_ValidateRequest_Call
- type ContextRequest_File_Call
- func (_c *ContextRequest_File_Call) Return(_a0 filesystem.File, _a1 error) *ContextRequest_File_Call
- func (_c *ContextRequest_File_Call) Run(run func(name string)) *ContextRequest_File_Call
- func (_c *ContextRequest_File_Call) RunAndReturn(run func(string) (filesystem.File, error)) *ContextRequest_File_Call
- type ContextRequest_FullUrl_Call
- type ContextRequest_HasSession_Call
- type ContextRequest_Header_Call
- func (_c *ContextRequest_Header_Call) Return(_a0 string) *ContextRequest_Header_Call
- func (_c *ContextRequest_Header_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Header_Call
- func (_c *ContextRequest_Header_Call) RunAndReturn(run func(string, ...string) string) *ContextRequest_Header_Call
- type ContextRequest_Headers_Call
- type ContextRequest_Host_Call
- type ContextRequest_InputArray_Call
- func (_c *ContextRequest_InputArray_Call) Return(_a0 []string) *ContextRequest_InputArray_Call
- func (_c *ContextRequest_InputArray_Call) Run(run func(key string, defaultValue ...[]string)) *ContextRequest_InputArray_Call
- func (_c *ContextRequest_InputArray_Call) RunAndReturn(run func(string, ...[]string) []string) *ContextRequest_InputArray_Call
- type ContextRequest_InputBool_Call
- func (_c *ContextRequest_InputBool_Call) Return(_a0 bool) *ContextRequest_InputBool_Call
- func (_c *ContextRequest_InputBool_Call) Run(run func(key string, defaultValue ...bool)) *ContextRequest_InputBool_Call
- func (_c *ContextRequest_InputBool_Call) RunAndReturn(run func(string, ...bool) bool) *ContextRequest_InputBool_Call
- type ContextRequest_InputInt64_Call
- func (_c *ContextRequest_InputInt64_Call) Return(_a0 int64) *ContextRequest_InputInt64_Call
- func (_c *ContextRequest_InputInt64_Call) Run(run func(key string, defaultValue ...int64)) *ContextRequest_InputInt64_Call
- func (_c *ContextRequest_InputInt64_Call) RunAndReturn(run func(string, ...int64) int64) *ContextRequest_InputInt64_Call
- type ContextRequest_InputInt_Call
- func (_c *ContextRequest_InputInt_Call) Return(_a0 int) *ContextRequest_InputInt_Call
- func (_c *ContextRequest_InputInt_Call) Run(run func(key string, defaultValue ...int)) *ContextRequest_InputInt_Call
- func (_c *ContextRequest_InputInt_Call) RunAndReturn(run func(string, ...int) int) *ContextRequest_InputInt_Call
- type ContextRequest_InputMap_Call
- func (_c *ContextRequest_InputMap_Call) Return(_a0 map[string]string) *ContextRequest_InputMap_Call
- func (_c *ContextRequest_InputMap_Call) Run(run func(key string, defaultValue ...map[string]string)) *ContextRequest_InputMap_Call
- func (_c *ContextRequest_InputMap_Call) RunAndReturn(run func(string, ...map[string]string) map[string]string) *ContextRequest_InputMap_Call
- type ContextRequest_Input_Call
- func (_c *ContextRequest_Input_Call) Return(_a0 string) *ContextRequest_Input_Call
- func (_c *ContextRequest_Input_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Input_Call
- func (_c *ContextRequest_Input_Call) RunAndReturn(run func(string, ...string) string) *ContextRequest_Input_Call
- type ContextRequest_Ip_Call
- type ContextRequest_Method_Call
- type ContextRequest_Next_Call
- type ContextRequest_Origin_Call
- type ContextRequest_Path_Call
- type ContextRequest_Queries_Call
- type ContextRequest_QueryArray_Call
- func (_c *ContextRequest_QueryArray_Call) Return(_a0 []string) *ContextRequest_QueryArray_Call
- func (_c *ContextRequest_QueryArray_Call) Run(run func(key string)) *ContextRequest_QueryArray_Call
- func (_c *ContextRequest_QueryArray_Call) RunAndReturn(run func(string) []string) *ContextRequest_QueryArray_Call
- type ContextRequest_QueryBool_Call
- func (_c *ContextRequest_QueryBool_Call) Return(_a0 bool) *ContextRequest_QueryBool_Call
- func (_c *ContextRequest_QueryBool_Call) Run(run func(key string, defaultValue ...bool)) *ContextRequest_QueryBool_Call
- func (_c *ContextRequest_QueryBool_Call) RunAndReturn(run func(string, ...bool) bool) *ContextRequest_QueryBool_Call
- type ContextRequest_QueryInt64_Call
- func (_c *ContextRequest_QueryInt64_Call) Return(_a0 int64) *ContextRequest_QueryInt64_Call
- func (_c *ContextRequest_QueryInt64_Call) Run(run func(key string, defaultValue ...int64)) *ContextRequest_QueryInt64_Call
- func (_c *ContextRequest_QueryInt64_Call) RunAndReturn(run func(string, ...int64) int64) *ContextRequest_QueryInt64_Call
- type ContextRequest_QueryInt_Call
- func (_c *ContextRequest_QueryInt_Call) Return(_a0 int) *ContextRequest_QueryInt_Call
- func (_c *ContextRequest_QueryInt_Call) Run(run func(key string, defaultValue ...int)) *ContextRequest_QueryInt_Call
- func (_c *ContextRequest_QueryInt_Call) RunAndReturn(run func(string, ...int) int) *ContextRequest_QueryInt_Call
- type ContextRequest_QueryMap_Call
- func (_c *ContextRequest_QueryMap_Call) Return(_a0 map[string]string) *ContextRequest_QueryMap_Call
- func (_c *ContextRequest_QueryMap_Call) Run(run func(key string)) *ContextRequest_QueryMap_Call
- func (_c *ContextRequest_QueryMap_Call) RunAndReturn(run func(string) map[string]string) *ContextRequest_QueryMap_Call
- type ContextRequest_Query_Call
- func (_c *ContextRequest_Query_Call) Return(_a0 string) *ContextRequest_Query_Call
- func (_c *ContextRequest_Query_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Query_Call
- func (_c *ContextRequest_Query_Call) RunAndReturn(run func(string, ...string) string) *ContextRequest_Query_Call
- type ContextRequest_RouteInt64_Call
- func (_c *ContextRequest_RouteInt64_Call) Return(_a0 int64) *ContextRequest_RouteInt64_Call
- func (_c *ContextRequest_RouteInt64_Call) Run(run func(key string)) *ContextRequest_RouteInt64_Call
- func (_c *ContextRequest_RouteInt64_Call) RunAndReturn(run func(string) int64) *ContextRequest_RouteInt64_Call
- type ContextRequest_RouteInt_Call
- type ContextRequest_Route_Call
- type ContextRequest_Session_Call
- type ContextRequest_SetSession_Call
- func (_c *ContextRequest_SetSession_Call) Return(_a0 http.ContextRequest) *ContextRequest_SetSession_Call
- func (_c *ContextRequest_SetSession_Call) Run(run func(_a0 session.Session)) *ContextRequest_SetSession_Call
- func (_c *ContextRequest_SetSession_Call) RunAndReturn(run func(session.Session) http.ContextRequest) *ContextRequest_SetSession_Call
- type ContextRequest_Url_Call
- type ContextRequest_ValidateRequest_Call
- func (_c *ContextRequest_ValidateRequest_Call) Return(_a0 validation.Errors, _a1 error) *ContextRequest_ValidateRequest_Call
- func (_c *ContextRequest_ValidateRequest_Call) Run(run func(request http.FormRequest)) *ContextRequest_ValidateRequest_Call
- func (_c *ContextRequest_ValidateRequest_Call) RunAndReturn(run func(http.FormRequest) (validation.Errors, error)) *ContextRequest_ValidateRequest_Call
- type ContextRequest_Validate_Call
- func (_c *ContextRequest_Validate_Call) Return(_a0 validation.Validator, _a1 error) *ContextRequest_Validate_Call
- func (_c *ContextRequest_Validate_Call) Run(run func(rules map[string]string, options ...validation.Option)) *ContextRequest_Validate_Call
- func (_c *ContextRequest_Validate_Call) RunAndReturn(...) *ContextRequest_Validate_Call
- type ContextResponse
- func (_m *ContextResponse) Cookie(cookie http.Cookie) http.ContextResponse
- func (_m *ContextResponse) Data(code int, contentType string, data []byte) http.Response
- func (_m *ContextResponse) Download(filepath string, filename string) http.Response
- func (_m *ContextResponse) EXPECT() *ContextResponse_Expecter
- func (_m *ContextResponse) File(filepath string) http.Response
- func (_m *ContextResponse) Flush()
- func (_m *ContextResponse) Header(key string, value string) http.ContextResponse
- func (_m *ContextResponse) Json(code int, obj interface{}) http.Response
- func (_m *ContextResponse) NoContent(code ...int) http.Response
- func (_m *ContextResponse) Origin() http.ResponseOrigin
- func (_m *ContextResponse) Redirect(code int, location string) http.Response
- func (_m *ContextResponse) Status(code int) http.ResponseStatus
- func (_m *ContextResponse) String(code int, format string, values ...interface{}) http.Response
- func (_m *ContextResponse) Success() http.ResponseStatus
- func (_m *ContextResponse) View() http.ResponseView
- func (_m *ContextResponse) WithoutCookie(name string) http.ContextResponse
- func (_m *ContextResponse) Writer() nethttp.ResponseWriter
- type ContextResponse_Cookie_Call
- func (_c *ContextResponse_Cookie_Call) Return(_a0 http.ContextResponse) *ContextResponse_Cookie_Call
- func (_c *ContextResponse_Cookie_Call) Run(run func(cookie http.Cookie)) *ContextResponse_Cookie_Call
- func (_c *ContextResponse_Cookie_Call) RunAndReturn(run func(http.Cookie) http.ContextResponse) *ContextResponse_Cookie_Call
- type ContextResponse_Data_Call
- func (_c *ContextResponse_Data_Call) Return(_a0 http.Response) *ContextResponse_Data_Call
- func (_c *ContextResponse_Data_Call) Run(run func(code int, contentType string, data []byte)) *ContextResponse_Data_Call
- func (_c *ContextResponse_Data_Call) RunAndReturn(run func(int, string, []byte) http.Response) *ContextResponse_Data_Call
- type ContextResponse_Download_Call
- func (_c *ContextResponse_Download_Call) Return(_a0 http.Response) *ContextResponse_Download_Call
- func (_c *ContextResponse_Download_Call) Run(run func(filepath string, filename string)) *ContextResponse_Download_Call
- func (_c *ContextResponse_Download_Call) RunAndReturn(run func(string, string) http.Response) *ContextResponse_Download_Call
- type ContextResponse_Expecter
- func (_e *ContextResponse_Expecter) Cookie(cookie interface{}) *ContextResponse_Cookie_Call
- func (_e *ContextResponse_Expecter) Data(code interface{}, contentType interface{}, data interface{}) *ContextResponse_Data_Call
- func (_e *ContextResponse_Expecter) Download(filepath interface{}, filename interface{}) *ContextResponse_Download_Call
- func (_e *ContextResponse_Expecter) File(filepath interface{}) *ContextResponse_File_Call
- func (_e *ContextResponse_Expecter) Flush() *ContextResponse_Flush_Call
- func (_e *ContextResponse_Expecter) Header(key interface{}, value interface{}) *ContextResponse_Header_Call
- func (_e *ContextResponse_Expecter) Json(code interface{}, obj interface{}) *ContextResponse_Json_Call
- func (_e *ContextResponse_Expecter) NoContent(code ...interface{}) *ContextResponse_NoContent_Call
- func (_e *ContextResponse_Expecter) Origin() *ContextResponse_Origin_Call
- func (_e *ContextResponse_Expecter) Redirect(code interface{}, location interface{}) *ContextResponse_Redirect_Call
- func (_e *ContextResponse_Expecter) Status(code interface{}) *ContextResponse_Status_Call
- func (_e *ContextResponse_Expecter) String(code interface{}, format interface{}, values ...interface{}) *ContextResponse_String_Call
- func (_e *ContextResponse_Expecter) Success() *ContextResponse_Success_Call
- func (_e *ContextResponse_Expecter) View() *ContextResponse_View_Call
- func (_e *ContextResponse_Expecter) WithoutCookie(name interface{}) *ContextResponse_WithoutCookie_Call
- func (_e *ContextResponse_Expecter) Writer() *ContextResponse_Writer_Call
- type ContextResponse_File_Call
- type ContextResponse_Flush_Call
- type ContextResponse_Header_Call
- func (_c *ContextResponse_Header_Call) Return(_a0 http.ContextResponse) *ContextResponse_Header_Call
- func (_c *ContextResponse_Header_Call) Run(run func(key string, value string)) *ContextResponse_Header_Call
- func (_c *ContextResponse_Header_Call) RunAndReturn(run func(string, string) http.ContextResponse) *ContextResponse_Header_Call
- type ContextResponse_Json_Call
- func (_c *ContextResponse_Json_Call) Return(_a0 http.Response) *ContextResponse_Json_Call
- func (_c *ContextResponse_Json_Call) Run(run func(code int, obj interface{})) *ContextResponse_Json_Call
- func (_c *ContextResponse_Json_Call) RunAndReturn(run func(int, interface{}) http.Response) *ContextResponse_Json_Call
- type ContextResponse_NoContent_Call
- func (_c *ContextResponse_NoContent_Call) Return(_a0 http.Response) *ContextResponse_NoContent_Call
- func (_c *ContextResponse_NoContent_Call) Run(run func(code ...int)) *ContextResponse_NoContent_Call
- func (_c *ContextResponse_NoContent_Call) RunAndReturn(run func(...int) http.Response) *ContextResponse_NoContent_Call
- type ContextResponse_Origin_Call
- type ContextResponse_Redirect_Call
- func (_c *ContextResponse_Redirect_Call) Return(_a0 http.Response) *ContextResponse_Redirect_Call
- func (_c *ContextResponse_Redirect_Call) Run(run func(code int, location string)) *ContextResponse_Redirect_Call
- func (_c *ContextResponse_Redirect_Call) RunAndReturn(run func(int, string) http.Response) *ContextResponse_Redirect_Call
- type ContextResponse_Status_Call
- func (_c *ContextResponse_Status_Call) Return(_a0 http.ResponseStatus) *ContextResponse_Status_Call
- func (_c *ContextResponse_Status_Call) Run(run func(code int)) *ContextResponse_Status_Call
- func (_c *ContextResponse_Status_Call) RunAndReturn(run func(int) http.ResponseStatus) *ContextResponse_Status_Call
- type ContextResponse_String_Call
- func (_c *ContextResponse_String_Call) Return(_a0 http.Response) *ContextResponse_String_Call
- func (_c *ContextResponse_String_Call) Run(run func(code int, format string, values ...interface{})) *ContextResponse_String_Call
- func (_c *ContextResponse_String_Call) RunAndReturn(run func(int, string, ...interface{}) http.Response) *ContextResponse_String_Call
- type ContextResponse_Success_Call
- func (_c *ContextResponse_Success_Call) Return(_a0 http.ResponseStatus) *ContextResponse_Success_Call
- func (_c *ContextResponse_Success_Call) Run(run func()) *ContextResponse_Success_Call
- func (_c *ContextResponse_Success_Call) RunAndReturn(run func() http.ResponseStatus) *ContextResponse_Success_Call
- type ContextResponse_View_Call
- type ContextResponse_WithoutCookie_Call
- func (_c *ContextResponse_WithoutCookie_Call) Return(_a0 http.ContextResponse) *ContextResponse_WithoutCookie_Call
- func (_c *ContextResponse_WithoutCookie_Call) Run(run func(name string)) *ContextResponse_WithoutCookie_Call
- func (_c *ContextResponse_WithoutCookie_Call) RunAndReturn(run func(string) http.ContextResponse) *ContextResponse_WithoutCookie_Call
- type ContextResponse_Writer_Call
- func (_c *ContextResponse_Writer_Call) Return(_a0 nethttp.ResponseWriter) *ContextResponse_Writer_Call
- func (_c *ContextResponse_Writer_Call) Run(run func()) *ContextResponse_Writer_Call
- func (_c *ContextResponse_Writer_Call) RunAndReturn(run func() nethttp.ResponseWriter) *ContextResponse_Writer_Call
- type Context_Context_Call
- type Context_Deadline_Call
- type Context_Done_Call
- type Context_Err_Call
- type Context_Expecter
- func (_e *Context_Expecter) Context() *Context_Context_Call
- func (_e *Context_Expecter) Deadline() *Context_Deadline_Call
- func (_e *Context_Expecter) Done() *Context_Done_Call
- func (_e *Context_Expecter) Err() *Context_Err_Call
- func (_e *Context_Expecter) Request() *Context_Request_Call
- func (_e *Context_Expecter) Response() *Context_Response_Call
- func (_e *Context_Expecter) Value(key interface{}) *Context_Value_Call
- func (_e *Context_Expecter) WithValue(key interface{}, value interface{}) *Context_WithValue_Call
- type Context_Request_Call
- type Context_Response_Call
- type Context_Value_Call
- type Context_WithValue_Call
- type FormRequest
- func (_m *FormRequest) Attributes(ctx http.Context) map[string]string
- func (_m *FormRequest) Authorize(ctx http.Context) error
- func (_m *FormRequest) EXPECT() *FormRequest_Expecter
- func (_m *FormRequest) Messages(ctx http.Context) map[string]string
- func (_m *FormRequest) PrepareForValidation(ctx http.Context, data validation.Data) error
- func (_m *FormRequest) Rules(ctx http.Context) map[string]string
- type FormRequest_Attributes_Call
- func (_c *FormRequest_Attributes_Call) Return(_a0 map[string]string) *FormRequest_Attributes_Call
- func (_c *FormRequest_Attributes_Call) Run(run func(ctx http.Context)) *FormRequest_Attributes_Call
- func (_c *FormRequest_Attributes_Call) RunAndReturn(run func(http.Context) map[string]string) *FormRequest_Attributes_Call
- type FormRequest_Authorize_Call
- type FormRequest_Expecter
- func (_e *FormRequest_Expecter) Attributes(ctx interface{}) *FormRequest_Attributes_Call
- func (_e *FormRequest_Expecter) Authorize(ctx interface{}) *FormRequest_Authorize_Call
- func (_e *FormRequest_Expecter) Messages(ctx interface{}) *FormRequest_Messages_Call
- func (_e *FormRequest_Expecter) PrepareForValidation(ctx interface{}, data interface{}) *FormRequest_PrepareForValidation_Call
- func (_e *FormRequest_Expecter) Rules(ctx interface{}) *FormRequest_Rules_Call
- type FormRequest_Messages_Call
- func (_c *FormRequest_Messages_Call) Return(_a0 map[string]string) *FormRequest_Messages_Call
- func (_c *FormRequest_Messages_Call) Run(run func(ctx http.Context)) *FormRequest_Messages_Call
- func (_c *FormRequest_Messages_Call) RunAndReturn(run func(http.Context) map[string]string) *FormRequest_Messages_Call
- type FormRequest_PrepareForValidation_Call
- func (_c *FormRequest_PrepareForValidation_Call) Return(_a0 error) *FormRequest_PrepareForValidation_Call
- func (_c *FormRequest_PrepareForValidation_Call) Run(run func(ctx http.Context, data validation.Data)) *FormRequest_PrepareForValidation_Call
- func (_c *FormRequest_PrepareForValidation_Call) RunAndReturn(run func(http.Context, validation.Data) error) *FormRequest_PrepareForValidation_Call
- type FormRequest_Rules_Call
- type HandlerFunc
- type HandlerFunc_Execute_Call
- type HandlerFunc_Expecter
- type Limit
- type Limit_By_Call
- type Limit_Expecter
- type Limit_Response_Call
- type Middleware
- type Middleware_Execute_Call
- type Middleware_Expecter
- type RateLimiter
- func (_m *RateLimiter) EXPECT() *RateLimiter_Expecter
- 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 RateLimiter_Expecter
- type RateLimiter_ForWithLimits_Call
- func (_c *RateLimiter_ForWithLimits_Call) Return() *RateLimiter_ForWithLimits_Call
- func (_c *RateLimiter_ForWithLimits_Call) Run(run func(name string, callback func(http.Context) []http.Limit)) *RateLimiter_ForWithLimits_Call
- func (_c *RateLimiter_ForWithLimits_Call) RunAndReturn(run func(string, func(http.Context) []http.Limit)) *RateLimiter_ForWithLimits_Call
- type RateLimiter_For_Call
- type RateLimiter_Limiter_Call
- func (_c *RateLimiter_Limiter_Call) Return(_a0 func(http.Context) []http.Limit) *RateLimiter_Limiter_Call
- func (_c *RateLimiter_Limiter_Call) Run(run func(name string)) *RateLimiter_Limiter_Call
- func (_c *RateLimiter_Limiter_Call) RunAndReturn(run func(string) func(http.Context) []http.Limit) *RateLimiter_Limiter_Call
- type ResourceController
- func (_m *ResourceController) Destroy(_a0 http.Context) http.Response
- func (_m *ResourceController) EXPECT() *ResourceController_Expecter
- func (_m *ResourceController) Index(_a0 http.Context) http.Response
- func (_m *ResourceController) Show(_a0 http.Context) http.Response
- func (_m *ResourceController) Store(_a0 http.Context) http.Response
- func (_m *ResourceController) Update(_a0 http.Context) http.Response
- type ResourceController_Destroy_Call
- func (_c *ResourceController_Destroy_Call) Return(_a0 http.Response) *ResourceController_Destroy_Call
- func (_c *ResourceController_Destroy_Call) Run(run func(_a0 http.Context)) *ResourceController_Destroy_Call
- func (_c *ResourceController_Destroy_Call) RunAndReturn(run func(http.Context) http.Response) *ResourceController_Destroy_Call
- type ResourceController_Expecter
- func (_e *ResourceController_Expecter) Destroy(_a0 interface{}) *ResourceController_Destroy_Call
- func (_e *ResourceController_Expecter) Index(_a0 interface{}) *ResourceController_Index_Call
- func (_e *ResourceController_Expecter) Show(_a0 interface{}) *ResourceController_Show_Call
- func (_e *ResourceController_Expecter) Store(_a0 interface{}) *ResourceController_Store_Call
- func (_e *ResourceController_Expecter) Update(_a0 interface{}) *ResourceController_Update_Call
- type ResourceController_Index_Call
- func (_c *ResourceController_Index_Call) Return(_a0 http.Response) *ResourceController_Index_Call
- func (_c *ResourceController_Index_Call) Run(run func(_a0 http.Context)) *ResourceController_Index_Call
- func (_c *ResourceController_Index_Call) RunAndReturn(run func(http.Context) http.Response) *ResourceController_Index_Call
- type ResourceController_Show_Call
- func (_c *ResourceController_Show_Call) Return(_a0 http.Response) *ResourceController_Show_Call
- func (_c *ResourceController_Show_Call) Run(run func(_a0 http.Context)) *ResourceController_Show_Call
- func (_c *ResourceController_Show_Call) RunAndReturn(run func(http.Context) http.Response) *ResourceController_Show_Call
- type ResourceController_Store_Call
- func (_c *ResourceController_Store_Call) Return(_a0 http.Response) *ResourceController_Store_Call
- func (_c *ResourceController_Store_Call) Run(run func(_a0 http.Context)) *ResourceController_Store_Call
- func (_c *ResourceController_Store_Call) RunAndReturn(run func(http.Context) http.Response) *ResourceController_Store_Call
- type ResourceController_Update_Call
- func (_c *ResourceController_Update_Call) Return(_a0 http.Response) *ResourceController_Update_Call
- func (_c *ResourceController_Update_Call) Run(run func(_a0 http.Context)) *ResourceController_Update_Call
- func (_c *ResourceController_Update_Call) RunAndReturn(run func(http.Context) http.Response) *ResourceController_Update_Call
- type Response
- type ResponseOrigin
- type ResponseOrigin_Body_Call
- type ResponseOrigin_Expecter
- type ResponseOrigin_Header_Call
- type ResponseOrigin_Size_Call
- type ResponseOrigin_Status_Call
- type ResponseStatus
- type ResponseStatus_Data_Call
- func (_c *ResponseStatus_Data_Call) Return(_a0 http.Response) *ResponseStatus_Data_Call
- func (_c *ResponseStatus_Data_Call) Run(run func(contentType string, data []byte)) *ResponseStatus_Data_Call
- func (_c *ResponseStatus_Data_Call) RunAndReturn(run func(string, []byte) http.Response) *ResponseStatus_Data_Call
- type ResponseStatus_Expecter
- func (_e *ResponseStatus_Expecter) Data(contentType interface{}, data interface{}) *ResponseStatus_Data_Call
- func (_e *ResponseStatus_Expecter) Json(obj interface{}) *ResponseStatus_Json_Call
- func (_e *ResponseStatus_Expecter) String(format interface{}, values ...interface{}) *ResponseStatus_String_Call
- type ResponseStatus_Json_Call
- type ResponseStatus_String_Call
- func (_c *ResponseStatus_String_Call) Return(_a0 http.Response) *ResponseStatus_String_Call
- func (_c *ResponseStatus_String_Call) Run(run func(format string, values ...interface{})) *ResponseStatus_String_Call
- func (_c *ResponseStatus_String_Call) RunAndReturn(run func(string, ...interface{}) http.Response) *ResponseStatus_String_Call
- type ResponseSuccess
- type ResponseSuccess_Data_Call
- func (_c *ResponseSuccess_Data_Call) Return(_a0 http.Response) *ResponseSuccess_Data_Call
- func (_c *ResponseSuccess_Data_Call) Run(run func(contentType string, data []byte)) *ResponseSuccess_Data_Call
- func (_c *ResponseSuccess_Data_Call) RunAndReturn(run func(string, []byte) http.Response) *ResponseSuccess_Data_Call
- type ResponseSuccess_Expecter
- func (_e *ResponseSuccess_Expecter) Data(contentType interface{}, data interface{}) *ResponseSuccess_Data_Call
- func (_e *ResponseSuccess_Expecter) Json(obj interface{}) *ResponseSuccess_Json_Call
- func (_e *ResponseSuccess_Expecter) String(format interface{}, values ...interface{}) *ResponseSuccess_String_Call
- type ResponseSuccess_Json_Call
- type ResponseSuccess_String_Call
- func (_c *ResponseSuccess_String_Call) Return(_a0 http.Response) *ResponseSuccess_String_Call
- func (_c *ResponseSuccess_String_Call) Run(run func(format string, values ...interface{})) *ResponseSuccess_String_Call
- func (_c *ResponseSuccess_String_Call) RunAndReturn(run func(string, ...interface{}) http.Response) *ResponseSuccess_String_Call
- type ResponseView
- type ResponseView_Expecter
- type ResponseView_First_Call
- func (_c *ResponseView_First_Call) Return(_a0 http.Response) *ResponseView_First_Call
- func (_c *ResponseView_First_Call) Run(run func(views []string, data ...interface{})) *ResponseView_First_Call
- func (_c *ResponseView_First_Call) RunAndReturn(run func([]string, ...interface{}) http.Response) *ResponseView_First_Call
- type ResponseView_Make_Call
- func (_c *ResponseView_Make_Call) Return(_a0 http.Response) *ResponseView_Make_Call
- func (_c *ResponseView_Make_Call) Run(run func(view string, data ...interface{})) *ResponseView_Make_Call
- func (_c *ResponseView_Make_Call) RunAndReturn(run func(string, ...interface{}) http.Response) *ResponseView_Make_Call
- type Response_Expecter
- type Response_Render_Call
- type View
- type View_Exists_Call
- type View_Expecter
- type View_GetShared_Call
- type View_Share_Call
- type View_Shared_Call
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 ¶
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. The first argument is typically a *testing.T value.
func (*Context) Done ¶
func (_m *Context) Done() <-chan struct{}
Done provides a mock function with given fields:
func (*Context) EXPECT ¶
func (_m *Context) EXPECT() *Context_Expecter
func (*Context) Request ¶
func (_m *Context) Request() http.ContextRequest
Request provides a mock function with given fields:
func (*Context) Response ¶
func (_m *Context) Response() http.ContextResponse
Response provides a mock function with given fields:
type ContextRequest ¶
ContextRequest is an autogenerated mock type for the ContextRequest type
func NewContextRequest ¶
func NewContextRequest(t interface {
mock.TestingT
Cleanup(func())
}) *ContextRequest
NewContextRequest creates a new instance of ContextRequest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ContextRequest) AbortWithStatus ¶
func (_m *ContextRequest) AbortWithStatus(code int)
AbortWithStatus provides a mock function with given fields: code
func (*ContextRequest) AbortWithStatusJson ¶
func (_m *ContextRequest) AbortWithStatusJson(code int, jsonObj interface{})
AbortWithStatusJson provides a mock function with given fields: code, jsonObj
func (*ContextRequest) All ¶
func (_m *ContextRequest) All() map[string]interface{}
All provides a mock function with given fields:
func (*ContextRequest) Bind ¶
func (_m *ContextRequest) Bind(obj interface{}) error
Bind provides a mock function with given fields: obj
func (*ContextRequest) Cookie ¶
func (_m *ContextRequest) Cookie(key string, defaultValue ...string) string
Cookie provides a mock function with given fields: key, defaultValue
func (*ContextRequest) EXPECT ¶
func (_m *ContextRequest) EXPECT() *ContextRequest_Expecter
func (*ContextRequest) File ¶
func (_m *ContextRequest) File(name string) (filesystem.File, error)
File provides a mock function with given fields: name
func (*ContextRequest) FullUrl ¶
func (_m *ContextRequest) FullUrl() string
FullUrl provides a mock function with given fields:
func (*ContextRequest) HasSession ¶
func (_m *ContextRequest) HasSession() bool
HasSession provides a mock function with given fields:
func (*ContextRequest) Header ¶
func (_m *ContextRequest) Header(key string, defaultValue ...string) string
Header provides a mock function with given fields: key, defaultValue
func (*ContextRequest) Headers ¶
func (_m *ContextRequest) Headers() nethttp.Header
Headers provides a mock function with given fields:
func (*ContextRequest) Host ¶
func (_m *ContextRequest) Host() string
Host provides a mock function with given fields:
func (*ContextRequest) Input ¶
func (_m *ContextRequest) Input(key string, defaultValue ...string) string
Input provides a mock function with given fields: key, defaultValue
func (*ContextRequest) InputArray ¶
func (_m *ContextRequest) InputArray(key string, defaultValue ...[]string) []string
InputArray provides a mock function with given fields: key, defaultValue
func (*ContextRequest) InputBool ¶
func (_m *ContextRequest) InputBool(key string, defaultValue ...bool) bool
InputBool provides a mock function with given fields: key, defaultValue
func (*ContextRequest) InputInt ¶
func (_m *ContextRequest) InputInt(key string, defaultValue ...int) int
InputInt provides a mock function with given fields: key, defaultValue
func (*ContextRequest) InputInt64 ¶
func (_m *ContextRequest) InputInt64(key string, defaultValue ...int64) int64
InputInt64 provides a mock function with given fields: key, defaultValue
func (*ContextRequest) InputMap ¶
InputMap provides a mock function with given fields: key, defaultValue
func (*ContextRequest) Ip ¶
func (_m *ContextRequest) Ip() string
Ip provides a mock function with given fields:
func (*ContextRequest) Method ¶
func (_m *ContextRequest) Method() string
Method provides a mock function with given fields:
func (*ContextRequest) Next ¶
func (_m *ContextRequest) Next()
Next provides a mock function with given fields:
func (*ContextRequest) Origin ¶
func (_m *ContextRequest) Origin() *nethttp.Request
Origin provides a mock function with given fields:
func (*ContextRequest) Path ¶
func (_m *ContextRequest) Path() string
Path provides a mock function with given fields:
func (*ContextRequest) Queries ¶
func (_m *ContextRequest) Queries() map[string]string
Queries provides a mock function with given fields:
func (*ContextRequest) Query ¶
func (_m *ContextRequest) Query(key string, defaultValue ...string) string
Query provides a mock function with given fields: key, defaultValue
func (*ContextRequest) QueryArray ¶
func (_m *ContextRequest) QueryArray(key string) []string
QueryArray provides a mock function with given fields: key
func (*ContextRequest) QueryBool ¶
func (_m *ContextRequest) QueryBool(key string, defaultValue ...bool) bool
QueryBool provides a mock function with given fields: key, defaultValue
func (*ContextRequest) QueryInt ¶
func (_m *ContextRequest) QueryInt(key string, defaultValue ...int) int
QueryInt provides a mock function with given fields: key, defaultValue
func (*ContextRequest) QueryInt64 ¶
func (_m *ContextRequest) QueryInt64(key string, defaultValue ...int64) int64
QueryInt64 provides a mock function with given fields: key, defaultValue
func (*ContextRequest) QueryMap ¶
func (_m *ContextRequest) QueryMap(key string) map[string]string
QueryMap provides a mock function with given fields: key
func (*ContextRequest) Route ¶
func (_m *ContextRequest) Route(key string) string
Route provides a mock function with given fields: key
func (*ContextRequest) RouteInt ¶
func (_m *ContextRequest) RouteInt(key string) int
RouteInt provides a mock function with given fields: key
func (*ContextRequest) RouteInt64 ¶
func (_m *ContextRequest) RouteInt64(key string) int64
RouteInt64 provides a mock function with given fields: key
func (*ContextRequest) Session ¶
func (_m *ContextRequest) Session() session.Session
Session provides a mock function with given fields:
func (*ContextRequest) SetSession ¶
func (_m *ContextRequest) SetSession(_a0 session.Session) http.ContextRequest
SetSession provides a mock function with given fields: _a0
func (*ContextRequest) Url ¶
func (_m *ContextRequest) Url() string
Url provides a mock function with given fields:
func (*ContextRequest) Validate ¶
func (_m *ContextRequest) Validate(rules map[string]string, options ...validation.Option) (validation.Validator, error)
Validate provides a mock function with given fields: rules, options
func (*ContextRequest) ValidateRequest ¶
func (_m *ContextRequest) ValidateRequest(request http.FormRequest) (validation.Errors, error)
ValidateRequest provides a mock function with given fields: request
type ContextRequest_AbortWithStatusJson_Call ¶
ContextRequest_AbortWithStatusJson_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortWithStatusJson'
func (*ContextRequest_AbortWithStatusJson_Call) Return ¶
func (_c *ContextRequest_AbortWithStatusJson_Call) Return() *ContextRequest_AbortWithStatusJson_Call
func (*ContextRequest_AbortWithStatusJson_Call) Run ¶
func (_c *ContextRequest_AbortWithStatusJson_Call) Run(run func(code int, jsonObj interface{})) *ContextRequest_AbortWithStatusJson_Call
func (*ContextRequest_AbortWithStatusJson_Call) RunAndReturn ¶
func (_c *ContextRequest_AbortWithStatusJson_Call) RunAndReturn(run func(int, interface{})) *ContextRequest_AbortWithStatusJson_Call
type ContextRequest_AbortWithStatus_Call ¶
ContextRequest_AbortWithStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortWithStatus'
func (*ContextRequest_AbortWithStatus_Call) Return ¶
func (_c *ContextRequest_AbortWithStatus_Call) Return() *ContextRequest_AbortWithStatus_Call
func (*ContextRequest_AbortWithStatus_Call) Run ¶
func (_c *ContextRequest_AbortWithStatus_Call) Run(run func(code int)) *ContextRequest_AbortWithStatus_Call
func (*ContextRequest_AbortWithStatus_Call) RunAndReturn ¶
func (_c *ContextRequest_AbortWithStatus_Call) RunAndReturn(run func(int)) *ContextRequest_AbortWithStatus_Call
type ContextRequest_All_Call ¶
ContextRequest_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*ContextRequest_All_Call) Return ¶
func (_c *ContextRequest_All_Call) Return(_a0 map[string]interface{}) *ContextRequest_All_Call
func (*ContextRequest_All_Call) Run ¶
func (_c *ContextRequest_All_Call) Run(run func()) *ContextRequest_All_Call
func (*ContextRequest_All_Call) RunAndReturn ¶
func (_c *ContextRequest_All_Call) RunAndReturn(run func() map[string]interface{}) *ContextRequest_All_Call
type ContextRequest_Bind_Call ¶
ContextRequest_Bind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Bind'
func (*ContextRequest_Bind_Call) Return ¶
func (_c *ContextRequest_Bind_Call) Return(_a0 error) *ContextRequest_Bind_Call
func (*ContextRequest_Bind_Call) Run ¶
func (_c *ContextRequest_Bind_Call) Run(run func(obj interface{})) *ContextRequest_Bind_Call
func (*ContextRequest_Bind_Call) RunAndReturn ¶
func (_c *ContextRequest_Bind_Call) RunAndReturn(run func(interface{}) error) *ContextRequest_Bind_Call
type ContextRequest_Cookie_Call ¶
ContextRequest_Cookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookie'
func (*ContextRequest_Cookie_Call) Return ¶
func (_c *ContextRequest_Cookie_Call) Return(_a0 string) *ContextRequest_Cookie_Call
func (*ContextRequest_Cookie_Call) Run ¶
func (_c *ContextRequest_Cookie_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Cookie_Call
func (*ContextRequest_Cookie_Call) RunAndReturn ¶
func (_c *ContextRequest_Cookie_Call) RunAndReturn(run func(string, ...string) string) *ContextRequest_Cookie_Call
type ContextRequest_Expecter ¶
type ContextRequest_Expecter struct {
// contains filtered or unexported fields
}
func (*ContextRequest_Expecter) AbortWithStatus ¶
func (_e *ContextRequest_Expecter) AbortWithStatus(code interface{}) *ContextRequest_AbortWithStatus_Call
AbortWithStatus is a helper method to define mock.On call
- code int
func (*ContextRequest_Expecter) AbortWithStatusJson ¶
func (_e *ContextRequest_Expecter) AbortWithStatusJson(code interface{}, jsonObj interface{}) *ContextRequest_AbortWithStatusJson_Call
AbortWithStatusJson is a helper method to define mock.On call
- code int
- jsonObj interface{}
func (*ContextRequest_Expecter) All ¶
func (_e *ContextRequest_Expecter) All() *ContextRequest_All_Call
All is a helper method to define mock.On call
func (*ContextRequest_Expecter) Bind ¶
func (_e *ContextRequest_Expecter) Bind(obj interface{}) *ContextRequest_Bind_Call
Bind is a helper method to define mock.On call
- obj interface{}
func (*ContextRequest_Expecter) Cookie ¶
func (_e *ContextRequest_Expecter) Cookie(key interface{}, defaultValue ...interface{}) *ContextRequest_Cookie_Call
Cookie is a helper method to define mock.On call
- key string
- defaultValue ...string
func (*ContextRequest_Expecter) File ¶
func (_e *ContextRequest_Expecter) File(name interface{}) *ContextRequest_File_Call
File is a helper method to define mock.On call
- name string
func (*ContextRequest_Expecter) FullUrl ¶
func (_e *ContextRequest_Expecter) FullUrl() *ContextRequest_FullUrl_Call
FullUrl is a helper method to define mock.On call
func (*ContextRequest_Expecter) HasSession ¶
func (_e *ContextRequest_Expecter) HasSession() *ContextRequest_HasSession_Call
HasSession is a helper method to define mock.On call
func (*ContextRequest_Expecter) Header ¶
func (_e *ContextRequest_Expecter) Header(key interface{}, defaultValue ...interface{}) *ContextRequest_Header_Call
Header is a helper method to define mock.On call
- key string
- defaultValue ...string
func (*ContextRequest_Expecter) Headers ¶
func (_e *ContextRequest_Expecter) Headers() *ContextRequest_Headers_Call
Headers is a helper method to define mock.On call
func (*ContextRequest_Expecter) Host ¶
func (_e *ContextRequest_Expecter) Host() *ContextRequest_Host_Call
Host is a helper method to define mock.On call
func (*ContextRequest_Expecter) Input ¶
func (_e *ContextRequest_Expecter) Input(key interface{}, defaultValue ...interface{}) *ContextRequest_Input_Call
Input is a helper method to define mock.On call
- key string
- defaultValue ...string
func (*ContextRequest_Expecter) InputArray ¶
func (_e *ContextRequest_Expecter) InputArray(key interface{}, defaultValue ...interface{}) *ContextRequest_InputArray_Call
InputArray is a helper method to define mock.On call
- key string
- defaultValue ...[]string
func (*ContextRequest_Expecter) InputBool ¶
func (_e *ContextRequest_Expecter) InputBool(key interface{}, defaultValue ...interface{}) *ContextRequest_InputBool_Call
InputBool is a helper method to define mock.On call
- key string
- defaultValue ...bool
func (*ContextRequest_Expecter) InputInt ¶
func (_e *ContextRequest_Expecter) InputInt(key interface{}, defaultValue ...interface{}) *ContextRequest_InputInt_Call
InputInt is a helper method to define mock.On call
- key string
- defaultValue ...int
func (*ContextRequest_Expecter) InputInt64 ¶
func (_e *ContextRequest_Expecter) InputInt64(key interface{}, defaultValue ...interface{}) *ContextRequest_InputInt64_Call
InputInt64 is a helper method to define mock.On call
- key string
- defaultValue ...int64
func (*ContextRequest_Expecter) InputMap ¶
func (_e *ContextRequest_Expecter) InputMap(key interface{}, defaultValue ...interface{}) *ContextRequest_InputMap_Call
InputMap is a helper method to define mock.On call
- key string
- defaultValue ...map[string]string
func (*ContextRequest_Expecter) Ip ¶
func (_e *ContextRequest_Expecter) Ip() *ContextRequest_Ip_Call
Ip is a helper method to define mock.On call
func (*ContextRequest_Expecter) Method ¶
func (_e *ContextRequest_Expecter) Method() *ContextRequest_Method_Call
Method is a helper method to define mock.On call
func (*ContextRequest_Expecter) Next ¶
func (_e *ContextRequest_Expecter) Next() *ContextRequest_Next_Call
Next is a helper method to define mock.On call
func (*ContextRequest_Expecter) Origin ¶
func (_e *ContextRequest_Expecter) Origin() *ContextRequest_Origin_Call
Origin is a helper method to define mock.On call
func (*ContextRequest_Expecter) Path ¶
func (_e *ContextRequest_Expecter) Path() *ContextRequest_Path_Call
Path is a helper method to define mock.On call
func (*ContextRequest_Expecter) Queries ¶
func (_e *ContextRequest_Expecter) Queries() *ContextRequest_Queries_Call
Queries is a helper method to define mock.On call
func (*ContextRequest_Expecter) Query ¶
func (_e *ContextRequest_Expecter) Query(key interface{}, defaultValue ...interface{}) *ContextRequest_Query_Call
Query is a helper method to define mock.On call
- key string
- defaultValue ...string
func (*ContextRequest_Expecter) QueryArray ¶
func (_e *ContextRequest_Expecter) QueryArray(key interface{}) *ContextRequest_QueryArray_Call
QueryArray is a helper method to define mock.On call
- key string
func (*ContextRequest_Expecter) QueryBool ¶
func (_e *ContextRequest_Expecter) QueryBool(key interface{}, defaultValue ...interface{}) *ContextRequest_QueryBool_Call
QueryBool is a helper method to define mock.On call
- key string
- defaultValue ...bool
func (*ContextRequest_Expecter) QueryInt ¶
func (_e *ContextRequest_Expecter) QueryInt(key interface{}, defaultValue ...interface{}) *ContextRequest_QueryInt_Call
QueryInt is a helper method to define mock.On call
- key string
- defaultValue ...int
func (*ContextRequest_Expecter) QueryInt64 ¶
func (_e *ContextRequest_Expecter) QueryInt64(key interface{}, defaultValue ...interface{}) *ContextRequest_QueryInt64_Call
QueryInt64 is a helper method to define mock.On call
- key string
- defaultValue ...int64
func (*ContextRequest_Expecter) QueryMap ¶
func (_e *ContextRequest_Expecter) QueryMap(key interface{}) *ContextRequest_QueryMap_Call
QueryMap is a helper method to define mock.On call
- key string
func (*ContextRequest_Expecter) Route ¶
func (_e *ContextRequest_Expecter) Route(key interface{}) *ContextRequest_Route_Call
Route is a helper method to define mock.On call
- key string
func (*ContextRequest_Expecter) RouteInt ¶
func (_e *ContextRequest_Expecter) RouteInt(key interface{}) *ContextRequest_RouteInt_Call
RouteInt is a helper method to define mock.On call
- key string
func (*ContextRequest_Expecter) RouteInt64 ¶
func (_e *ContextRequest_Expecter) RouteInt64(key interface{}) *ContextRequest_RouteInt64_Call
RouteInt64 is a helper method to define mock.On call
- key string
func (*ContextRequest_Expecter) Session ¶
func (_e *ContextRequest_Expecter) Session() *ContextRequest_Session_Call
Session is a helper method to define mock.On call
func (*ContextRequest_Expecter) SetSession ¶
func (_e *ContextRequest_Expecter) SetSession(_a0 interface{}) *ContextRequest_SetSession_Call
SetSession is a helper method to define mock.On call
- _a0 session.Session
func (*ContextRequest_Expecter) Url ¶
func (_e *ContextRequest_Expecter) Url() *ContextRequest_Url_Call
Url is a helper method to define mock.On call
func (*ContextRequest_Expecter) Validate ¶
func (_e *ContextRequest_Expecter) Validate(rules interface{}, options ...interface{}) *ContextRequest_Validate_Call
Validate is a helper method to define mock.On call
- rules map[string]string
- options ...validation.Option
func (*ContextRequest_Expecter) ValidateRequest ¶
func (_e *ContextRequest_Expecter) ValidateRequest(request interface{}) *ContextRequest_ValidateRequest_Call
ValidateRequest is a helper method to define mock.On call
- request http.FormRequest
type ContextRequest_File_Call ¶
ContextRequest_File_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'File'
func (*ContextRequest_File_Call) Return ¶
func (_c *ContextRequest_File_Call) Return(_a0 filesystem.File, _a1 error) *ContextRequest_File_Call
func (*ContextRequest_File_Call) Run ¶
func (_c *ContextRequest_File_Call) Run(run func(name string)) *ContextRequest_File_Call
func (*ContextRequest_File_Call) RunAndReturn ¶
func (_c *ContextRequest_File_Call) RunAndReturn(run func(string) (filesystem.File, error)) *ContextRequest_File_Call
type ContextRequest_FullUrl_Call ¶
ContextRequest_FullUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FullUrl'
func (*ContextRequest_FullUrl_Call) Return ¶
func (_c *ContextRequest_FullUrl_Call) Return(_a0 string) *ContextRequest_FullUrl_Call
func (*ContextRequest_FullUrl_Call) Run ¶
func (_c *ContextRequest_FullUrl_Call) Run(run func()) *ContextRequest_FullUrl_Call
func (*ContextRequest_FullUrl_Call) RunAndReturn ¶
func (_c *ContextRequest_FullUrl_Call) RunAndReturn(run func() string) *ContextRequest_FullUrl_Call
type ContextRequest_HasSession_Call ¶
ContextRequest_HasSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasSession'
func (*ContextRequest_HasSession_Call) Return ¶
func (_c *ContextRequest_HasSession_Call) Return(_a0 bool) *ContextRequest_HasSession_Call
func (*ContextRequest_HasSession_Call) Run ¶
func (_c *ContextRequest_HasSession_Call) Run(run func()) *ContextRequest_HasSession_Call
func (*ContextRequest_HasSession_Call) RunAndReturn ¶
func (_c *ContextRequest_HasSession_Call) RunAndReturn(run func() bool) *ContextRequest_HasSession_Call
type ContextRequest_Header_Call ¶
ContextRequest_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*ContextRequest_Header_Call) Return ¶
func (_c *ContextRequest_Header_Call) Return(_a0 string) *ContextRequest_Header_Call
func (*ContextRequest_Header_Call) Run ¶
func (_c *ContextRequest_Header_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Header_Call
func (*ContextRequest_Header_Call) RunAndReturn ¶
func (_c *ContextRequest_Header_Call) RunAndReturn(run func(string, ...string) string) *ContextRequest_Header_Call
type ContextRequest_Headers_Call ¶
ContextRequest_Headers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Headers'
func (*ContextRequest_Headers_Call) Return ¶
func (_c *ContextRequest_Headers_Call) Return(_a0 nethttp.Header) *ContextRequest_Headers_Call
func (*ContextRequest_Headers_Call) Run ¶
func (_c *ContextRequest_Headers_Call) Run(run func()) *ContextRequest_Headers_Call
func (*ContextRequest_Headers_Call) RunAndReturn ¶
func (_c *ContextRequest_Headers_Call) RunAndReturn(run func() nethttp.Header) *ContextRequest_Headers_Call
type ContextRequest_Host_Call ¶
ContextRequest_Host_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Host'
func (*ContextRequest_Host_Call) Return ¶
func (_c *ContextRequest_Host_Call) Return(_a0 string) *ContextRequest_Host_Call
func (*ContextRequest_Host_Call) Run ¶
func (_c *ContextRequest_Host_Call) Run(run func()) *ContextRequest_Host_Call
func (*ContextRequest_Host_Call) RunAndReturn ¶
func (_c *ContextRequest_Host_Call) RunAndReturn(run func() string) *ContextRequest_Host_Call
type ContextRequest_InputArray_Call ¶
ContextRequest_InputArray_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InputArray'
func (*ContextRequest_InputArray_Call) Return ¶
func (_c *ContextRequest_InputArray_Call) Return(_a0 []string) *ContextRequest_InputArray_Call
func (*ContextRequest_InputArray_Call) Run ¶
func (_c *ContextRequest_InputArray_Call) Run(run func(key string, defaultValue ...[]string)) *ContextRequest_InputArray_Call
func (*ContextRequest_InputArray_Call) RunAndReturn ¶
func (_c *ContextRequest_InputArray_Call) RunAndReturn(run func(string, ...[]string) []string) *ContextRequest_InputArray_Call
type ContextRequest_InputBool_Call ¶
ContextRequest_InputBool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InputBool'
func (*ContextRequest_InputBool_Call) Return ¶
func (_c *ContextRequest_InputBool_Call) Return(_a0 bool) *ContextRequest_InputBool_Call
func (*ContextRequest_InputBool_Call) Run ¶
func (_c *ContextRequest_InputBool_Call) Run(run func(key string, defaultValue ...bool)) *ContextRequest_InputBool_Call
func (*ContextRequest_InputBool_Call) RunAndReturn ¶
func (_c *ContextRequest_InputBool_Call) RunAndReturn(run func(string, ...bool) bool) *ContextRequest_InputBool_Call
type ContextRequest_InputInt64_Call ¶
ContextRequest_InputInt64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InputInt64'
func (*ContextRequest_InputInt64_Call) Return ¶
func (_c *ContextRequest_InputInt64_Call) Return(_a0 int64) *ContextRequest_InputInt64_Call
func (*ContextRequest_InputInt64_Call) Run ¶
func (_c *ContextRequest_InputInt64_Call) Run(run func(key string, defaultValue ...int64)) *ContextRequest_InputInt64_Call
func (*ContextRequest_InputInt64_Call) RunAndReturn ¶
func (_c *ContextRequest_InputInt64_Call) RunAndReturn(run func(string, ...int64) int64) *ContextRequest_InputInt64_Call
type ContextRequest_InputInt_Call ¶
ContextRequest_InputInt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InputInt'
func (*ContextRequest_InputInt_Call) Return ¶
func (_c *ContextRequest_InputInt_Call) Return(_a0 int) *ContextRequest_InputInt_Call
func (*ContextRequest_InputInt_Call) Run ¶
func (_c *ContextRequest_InputInt_Call) Run(run func(key string, defaultValue ...int)) *ContextRequest_InputInt_Call
func (*ContextRequest_InputInt_Call) RunAndReturn ¶
func (_c *ContextRequest_InputInt_Call) RunAndReturn(run func(string, ...int) int) *ContextRequest_InputInt_Call
type ContextRequest_InputMap_Call ¶
ContextRequest_InputMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InputMap'
func (*ContextRequest_InputMap_Call) Return ¶
func (_c *ContextRequest_InputMap_Call) Return(_a0 map[string]string) *ContextRequest_InputMap_Call
func (*ContextRequest_InputMap_Call) Run ¶
func (_c *ContextRequest_InputMap_Call) Run(run func(key string, defaultValue ...map[string]string)) *ContextRequest_InputMap_Call
func (*ContextRequest_InputMap_Call) RunAndReturn ¶
func (_c *ContextRequest_InputMap_Call) RunAndReturn(run func(string, ...map[string]string) map[string]string) *ContextRequest_InputMap_Call
type ContextRequest_Input_Call ¶
ContextRequest_Input_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Input'
func (*ContextRequest_Input_Call) Return ¶
func (_c *ContextRequest_Input_Call) Return(_a0 string) *ContextRequest_Input_Call
func (*ContextRequest_Input_Call) Run ¶
func (_c *ContextRequest_Input_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Input_Call
func (*ContextRequest_Input_Call) RunAndReturn ¶
func (_c *ContextRequest_Input_Call) RunAndReturn(run func(string, ...string) string) *ContextRequest_Input_Call
type ContextRequest_Ip_Call ¶
ContextRequest_Ip_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ip'
func (*ContextRequest_Ip_Call) Return ¶
func (_c *ContextRequest_Ip_Call) Return(_a0 string) *ContextRequest_Ip_Call
func (*ContextRequest_Ip_Call) Run ¶
func (_c *ContextRequest_Ip_Call) Run(run func()) *ContextRequest_Ip_Call
func (*ContextRequest_Ip_Call) RunAndReturn ¶
func (_c *ContextRequest_Ip_Call) RunAndReturn(run func() string) *ContextRequest_Ip_Call
type ContextRequest_Method_Call ¶
ContextRequest_Method_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Method'
func (*ContextRequest_Method_Call) Return ¶
func (_c *ContextRequest_Method_Call) Return(_a0 string) *ContextRequest_Method_Call
func (*ContextRequest_Method_Call) Run ¶
func (_c *ContextRequest_Method_Call) Run(run func()) *ContextRequest_Method_Call
func (*ContextRequest_Method_Call) RunAndReturn ¶
func (_c *ContextRequest_Method_Call) RunAndReturn(run func() string) *ContextRequest_Method_Call
type ContextRequest_Next_Call ¶
ContextRequest_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'
func (*ContextRequest_Next_Call) Return ¶
func (_c *ContextRequest_Next_Call) Return() *ContextRequest_Next_Call
func (*ContextRequest_Next_Call) Run ¶
func (_c *ContextRequest_Next_Call) Run(run func()) *ContextRequest_Next_Call
func (*ContextRequest_Next_Call) RunAndReturn ¶
func (_c *ContextRequest_Next_Call) RunAndReturn(run func()) *ContextRequest_Next_Call
type ContextRequest_Origin_Call ¶
ContextRequest_Origin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Origin'
func (*ContextRequest_Origin_Call) Return ¶
func (_c *ContextRequest_Origin_Call) Return(_a0 *nethttp.Request) *ContextRequest_Origin_Call
func (*ContextRequest_Origin_Call) Run ¶
func (_c *ContextRequest_Origin_Call) Run(run func()) *ContextRequest_Origin_Call
func (*ContextRequest_Origin_Call) RunAndReturn ¶
func (_c *ContextRequest_Origin_Call) RunAndReturn(run func() *nethttp.Request) *ContextRequest_Origin_Call
type ContextRequest_Path_Call ¶
ContextRequest_Path_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Path'
func (*ContextRequest_Path_Call) Return ¶
func (_c *ContextRequest_Path_Call) Return(_a0 string) *ContextRequest_Path_Call
func (*ContextRequest_Path_Call) Run ¶
func (_c *ContextRequest_Path_Call) Run(run func()) *ContextRequest_Path_Call
func (*ContextRequest_Path_Call) RunAndReturn ¶
func (_c *ContextRequest_Path_Call) RunAndReturn(run func() string) *ContextRequest_Path_Call
type ContextRequest_Queries_Call ¶
ContextRequest_Queries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Queries'
func (*ContextRequest_Queries_Call) Return ¶
func (_c *ContextRequest_Queries_Call) Return(_a0 map[string]string) *ContextRequest_Queries_Call
func (*ContextRequest_Queries_Call) Run ¶
func (_c *ContextRequest_Queries_Call) Run(run func()) *ContextRequest_Queries_Call
func (*ContextRequest_Queries_Call) RunAndReturn ¶
func (_c *ContextRequest_Queries_Call) RunAndReturn(run func() map[string]string) *ContextRequest_Queries_Call
type ContextRequest_QueryArray_Call ¶
ContextRequest_QueryArray_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryArray'
func (*ContextRequest_QueryArray_Call) Return ¶
func (_c *ContextRequest_QueryArray_Call) Return(_a0 []string) *ContextRequest_QueryArray_Call
func (*ContextRequest_QueryArray_Call) Run ¶
func (_c *ContextRequest_QueryArray_Call) Run(run func(key string)) *ContextRequest_QueryArray_Call
func (*ContextRequest_QueryArray_Call) RunAndReturn ¶
func (_c *ContextRequest_QueryArray_Call) RunAndReturn(run func(string) []string) *ContextRequest_QueryArray_Call
type ContextRequest_QueryBool_Call ¶
ContextRequest_QueryBool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryBool'
func (*ContextRequest_QueryBool_Call) Return ¶
func (_c *ContextRequest_QueryBool_Call) Return(_a0 bool) *ContextRequest_QueryBool_Call
func (*ContextRequest_QueryBool_Call) Run ¶
func (_c *ContextRequest_QueryBool_Call) Run(run func(key string, defaultValue ...bool)) *ContextRequest_QueryBool_Call
func (*ContextRequest_QueryBool_Call) RunAndReturn ¶
func (_c *ContextRequest_QueryBool_Call) RunAndReturn(run func(string, ...bool) bool) *ContextRequest_QueryBool_Call
type ContextRequest_QueryInt64_Call ¶
ContextRequest_QueryInt64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryInt64'
func (*ContextRequest_QueryInt64_Call) Return ¶
func (_c *ContextRequest_QueryInt64_Call) Return(_a0 int64) *ContextRequest_QueryInt64_Call
func (*ContextRequest_QueryInt64_Call) Run ¶
func (_c *ContextRequest_QueryInt64_Call) Run(run func(key string, defaultValue ...int64)) *ContextRequest_QueryInt64_Call
func (*ContextRequest_QueryInt64_Call) RunAndReturn ¶
func (_c *ContextRequest_QueryInt64_Call) RunAndReturn(run func(string, ...int64) int64) *ContextRequest_QueryInt64_Call
type ContextRequest_QueryInt_Call ¶
ContextRequest_QueryInt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryInt'
func (*ContextRequest_QueryInt_Call) Return ¶
func (_c *ContextRequest_QueryInt_Call) Return(_a0 int) *ContextRequest_QueryInt_Call
func (*ContextRequest_QueryInt_Call) Run ¶
func (_c *ContextRequest_QueryInt_Call) Run(run func(key string, defaultValue ...int)) *ContextRequest_QueryInt_Call
func (*ContextRequest_QueryInt_Call) RunAndReturn ¶
func (_c *ContextRequest_QueryInt_Call) RunAndReturn(run func(string, ...int) int) *ContextRequest_QueryInt_Call
type ContextRequest_QueryMap_Call ¶
ContextRequest_QueryMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryMap'
func (*ContextRequest_QueryMap_Call) Return ¶
func (_c *ContextRequest_QueryMap_Call) Return(_a0 map[string]string) *ContextRequest_QueryMap_Call
func (*ContextRequest_QueryMap_Call) Run ¶
func (_c *ContextRequest_QueryMap_Call) Run(run func(key string)) *ContextRequest_QueryMap_Call
func (*ContextRequest_QueryMap_Call) RunAndReturn ¶
func (_c *ContextRequest_QueryMap_Call) RunAndReturn(run func(string) map[string]string) *ContextRequest_QueryMap_Call
type ContextRequest_Query_Call ¶
ContextRequest_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*ContextRequest_Query_Call) Return ¶
func (_c *ContextRequest_Query_Call) Return(_a0 string) *ContextRequest_Query_Call
func (*ContextRequest_Query_Call) Run ¶
func (_c *ContextRequest_Query_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Query_Call
func (*ContextRequest_Query_Call) RunAndReturn ¶
func (_c *ContextRequest_Query_Call) RunAndReturn(run func(string, ...string) string) *ContextRequest_Query_Call
type ContextRequest_RouteInt64_Call ¶
ContextRequest_RouteInt64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RouteInt64'
func (*ContextRequest_RouteInt64_Call) Return ¶
func (_c *ContextRequest_RouteInt64_Call) Return(_a0 int64) *ContextRequest_RouteInt64_Call
func (*ContextRequest_RouteInt64_Call) Run ¶
func (_c *ContextRequest_RouteInt64_Call) Run(run func(key string)) *ContextRequest_RouteInt64_Call
func (*ContextRequest_RouteInt64_Call) RunAndReturn ¶
func (_c *ContextRequest_RouteInt64_Call) RunAndReturn(run func(string) int64) *ContextRequest_RouteInt64_Call
type ContextRequest_RouteInt_Call ¶
ContextRequest_RouteInt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RouteInt'
func (*ContextRequest_RouteInt_Call) Return ¶
func (_c *ContextRequest_RouteInt_Call) Return(_a0 int) *ContextRequest_RouteInt_Call
func (*ContextRequest_RouteInt_Call) Run ¶
func (_c *ContextRequest_RouteInt_Call) Run(run func(key string)) *ContextRequest_RouteInt_Call
func (*ContextRequest_RouteInt_Call) RunAndReturn ¶
func (_c *ContextRequest_RouteInt_Call) RunAndReturn(run func(string) int) *ContextRequest_RouteInt_Call
type ContextRequest_Route_Call ¶
ContextRequest_Route_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Route'
func (*ContextRequest_Route_Call) Return ¶
func (_c *ContextRequest_Route_Call) Return(_a0 string) *ContextRequest_Route_Call
func (*ContextRequest_Route_Call) Run ¶
func (_c *ContextRequest_Route_Call) Run(run func(key string)) *ContextRequest_Route_Call
func (*ContextRequest_Route_Call) RunAndReturn ¶
func (_c *ContextRequest_Route_Call) RunAndReturn(run func(string) string) *ContextRequest_Route_Call
type ContextRequest_Session_Call ¶
ContextRequest_Session_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Session'
func (*ContextRequest_Session_Call) Return ¶
func (_c *ContextRequest_Session_Call) Return(_a0 session.Session) *ContextRequest_Session_Call
func (*ContextRequest_Session_Call) Run ¶
func (_c *ContextRequest_Session_Call) Run(run func()) *ContextRequest_Session_Call
func (*ContextRequest_Session_Call) RunAndReturn ¶
func (_c *ContextRequest_Session_Call) RunAndReturn(run func() session.Session) *ContextRequest_Session_Call
type ContextRequest_SetSession_Call ¶
ContextRequest_SetSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSession'
func (*ContextRequest_SetSession_Call) Return ¶
func (_c *ContextRequest_SetSession_Call) Return(_a0 http.ContextRequest) *ContextRequest_SetSession_Call
func (*ContextRequest_SetSession_Call) Run ¶
func (_c *ContextRequest_SetSession_Call) Run(run func(_a0 session.Session)) *ContextRequest_SetSession_Call
func (*ContextRequest_SetSession_Call) RunAndReturn ¶
func (_c *ContextRequest_SetSession_Call) RunAndReturn(run func(session.Session) http.ContextRequest) *ContextRequest_SetSession_Call
type ContextRequest_Url_Call ¶
ContextRequest_Url_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Url'
func (*ContextRequest_Url_Call) Return ¶
func (_c *ContextRequest_Url_Call) Return(_a0 string) *ContextRequest_Url_Call
func (*ContextRequest_Url_Call) Run ¶
func (_c *ContextRequest_Url_Call) Run(run func()) *ContextRequest_Url_Call
func (*ContextRequest_Url_Call) RunAndReturn ¶
func (_c *ContextRequest_Url_Call) RunAndReturn(run func() string) *ContextRequest_Url_Call
type ContextRequest_ValidateRequest_Call ¶
ContextRequest_ValidateRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateRequest'
func (*ContextRequest_ValidateRequest_Call) Return ¶
func (_c *ContextRequest_ValidateRequest_Call) Return(_a0 validation.Errors, _a1 error) *ContextRequest_ValidateRequest_Call
func (*ContextRequest_ValidateRequest_Call) Run ¶
func (_c *ContextRequest_ValidateRequest_Call) Run(run func(request http.FormRequest)) *ContextRequest_ValidateRequest_Call
func (*ContextRequest_ValidateRequest_Call) RunAndReturn ¶
func (_c *ContextRequest_ValidateRequest_Call) RunAndReturn(run func(http.FormRequest) (validation.Errors, error)) *ContextRequest_ValidateRequest_Call
type ContextRequest_Validate_Call ¶
ContextRequest_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*ContextRequest_Validate_Call) Return ¶
func (_c *ContextRequest_Validate_Call) Return(_a0 validation.Validator, _a1 error) *ContextRequest_Validate_Call
func (*ContextRequest_Validate_Call) Run ¶
func (_c *ContextRequest_Validate_Call) Run(run func(rules map[string]string, options ...validation.Option)) *ContextRequest_Validate_Call
func (*ContextRequest_Validate_Call) RunAndReturn ¶
func (_c *ContextRequest_Validate_Call) RunAndReturn(run func(map[string]string, ...validation.Option) (validation.Validator, error)) *ContextRequest_Validate_Call
type ContextResponse ¶
ContextResponse is an autogenerated mock type for the ContextResponse type
func NewContextResponse ¶
func NewContextResponse(t interface {
mock.TestingT
Cleanup(func())
}) *ContextResponse
NewContextResponse creates a new instance of ContextResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ContextResponse) Cookie ¶
func (_m *ContextResponse) Cookie(cookie http.Cookie) http.ContextResponse
Cookie provides a mock function with given fields: cookie
func (*ContextResponse) Data ¶
Data provides a mock function with given fields: code, contentType, data
func (*ContextResponse) Download ¶
func (_m *ContextResponse) Download(filepath string, filename string) http.Response
Download provides a mock function with given fields: filepath, filename
func (*ContextResponse) EXPECT ¶
func (_m *ContextResponse) EXPECT() *ContextResponse_Expecter
func (*ContextResponse) File ¶
func (_m *ContextResponse) File(filepath string) http.Response
File provides a mock function with given fields: filepath
func (*ContextResponse) Flush ¶
func (_m *ContextResponse) Flush()
Flush provides a mock function with given fields:
func (*ContextResponse) Header ¶
func (_m *ContextResponse) Header(key string, value string) http.ContextResponse
Header provides a mock function with given fields: key, value
func (*ContextResponse) Json ¶
func (_m *ContextResponse) Json(code int, obj interface{}) http.Response
Json provides a mock function with given fields: code, obj
func (*ContextResponse) NoContent ¶
func (_m *ContextResponse) NoContent(code ...int) http.Response
NoContent provides a mock function with given fields: code
func (*ContextResponse) Origin ¶
func (_m *ContextResponse) Origin() http.ResponseOrigin
Origin provides a mock function with given fields:
func (*ContextResponse) Redirect ¶
func (_m *ContextResponse) Redirect(code int, location string) http.Response
Redirect provides a mock function with given fields: code, location
func (*ContextResponse) Status ¶
func (_m *ContextResponse) Status(code int) http.ResponseStatus
Status provides a mock function with given fields: code
func (*ContextResponse) String ¶
func (_m *ContextResponse) String(code int, format string, values ...interface{}) http.Response
String provides a mock function with given fields: code, format, values
func (*ContextResponse) Success ¶
func (_m *ContextResponse) Success() http.ResponseStatus
Success provides a mock function with given fields:
func (*ContextResponse) View ¶
func (_m *ContextResponse) View() http.ResponseView
View provides a mock function with given fields:
func (*ContextResponse) WithoutCookie ¶
func (_m *ContextResponse) WithoutCookie(name string) http.ContextResponse
WithoutCookie provides a mock function with given fields: name
func (*ContextResponse) Writer ¶
func (_m *ContextResponse) Writer() nethttp.ResponseWriter
Writer provides a mock function with given fields:
type ContextResponse_Cookie_Call ¶
ContextResponse_Cookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookie'
func (*ContextResponse_Cookie_Call) Return ¶
func (_c *ContextResponse_Cookie_Call) Return(_a0 http.ContextResponse) *ContextResponse_Cookie_Call
func (*ContextResponse_Cookie_Call) Run ¶
func (_c *ContextResponse_Cookie_Call) Run(run func(cookie http.Cookie)) *ContextResponse_Cookie_Call
func (*ContextResponse_Cookie_Call) RunAndReturn ¶
func (_c *ContextResponse_Cookie_Call) RunAndReturn(run func(http.Cookie) http.ContextResponse) *ContextResponse_Cookie_Call
type ContextResponse_Data_Call ¶
ContextResponse_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'
func (*ContextResponse_Data_Call) Return ¶
func (_c *ContextResponse_Data_Call) Return(_a0 http.Response) *ContextResponse_Data_Call
func (*ContextResponse_Data_Call) Run ¶
func (_c *ContextResponse_Data_Call) Run(run func(code int, contentType string, data []byte)) *ContextResponse_Data_Call
func (*ContextResponse_Data_Call) RunAndReturn ¶
func (_c *ContextResponse_Data_Call) RunAndReturn(run func(int, string, []byte) http.Response) *ContextResponse_Data_Call
type ContextResponse_Download_Call ¶
ContextResponse_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'
func (*ContextResponse_Download_Call) Return ¶
func (_c *ContextResponse_Download_Call) Return(_a0 http.Response) *ContextResponse_Download_Call
func (*ContextResponse_Download_Call) Run ¶
func (_c *ContextResponse_Download_Call) Run(run func(filepath string, filename string)) *ContextResponse_Download_Call
func (*ContextResponse_Download_Call) RunAndReturn ¶
func (_c *ContextResponse_Download_Call) RunAndReturn(run func(string, string) http.Response) *ContextResponse_Download_Call
type ContextResponse_Expecter ¶
type ContextResponse_Expecter struct {
// contains filtered or unexported fields
}
func (*ContextResponse_Expecter) Cookie ¶
func (_e *ContextResponse_Expecter) Cookie(cookie interface{}) *ContextResponse_Cookie_Call
Cookie is a helper method to define mock.On call
- cookie http.Cookie
func (*ContextResponse_Expecter) Data ¶
func (_e *ContextResponse_Expecter) Data(code interface{}, contentType interface{}, data interface{}) *ContextResponse_Data_Call
Data is a helper method to define mock.On call
- code int
- contentType string
- data []byte
func (*ContextResponse_Expecter) Download ¶
func (_e *ContextResponse_Expecter) Download(filepath interface{}, filename interface{}) *ContextResponse_Download_Call
Download is a helper method to define mock.On call
- filepath string
- filename string
func (*ContextResponse_Expecter) File ¶
func (_e *ContextResponse_Expecter) File(filepath interface{}) *ContextResponse_File_Call
File is a helper method to define mock.On call
- filepath string
func (*ContextResponse_Expecter) Flush ¶
func (_e *ContextResponse_Expecter) Flush() *ContextResponse_Flush_Call
Flush is a helper method to define mock.On call
func (*ContextResponse_Expecter) Header ¶
func (_e *ContextResponse_Expecter) Header(key interface{}, value interface{}) *ContextResponse_Header_Call
Header is a helper method to define mock.On call
- key string
- value string
func (*ContextResponse_Expecter) Json ¶
func (_e *ContextResponse_Expecter) Json(code interface{}, obj interface{}) *ContextResponse_Json_Call
Json is a helper method to define mock.On call
- code int
- obj interface{}
func (*ContextResponse_Expecter) NoContent ¶
func (_e *ContextResponse_Expecter) NoContent(code ...interface{}) *ContextResponse_NoContent_Call
NoContent is a helper method to define mock.On call
- code ...int
func (*ContextResponse_Expecter) Origin ¶
func (_e *ContextResponse_Expecter) Origin() *ContextResponse_Origin_Call
Origin is a helper method to define mock.On call
func (*ContextResponse_Expecter) Redirect ¶
func (_e *ContextResponse_Expecter) Redirect(code interface{}, location interface{}) *ContextResponse_Redirect_Call
Redirect is a helper method to define mock.On call
- code int
- location string
func (*ContextResponse_Expecter) Status ¶
func (_e *ContextResponse_Expecter) Status(code interface{}) *ContextResponse_Status_Call
Status is a helper method to define mock.On call
- code int
func (*ContextResponse_Expecter) String ¶
func (_e *ContextResponse_Expecter) String(code interface{}, format interface{}, values ...interface{}) *ContextResponse_String_Call
String is a helper method to define mock.On call
- code int
- format string
- values ...interface{}
func (*ContextResponse_Expecter) Success ¶
func (_e *ContextResponse_Expecter) Success() *ContextResponse_Success_Call
Success is a helper method to define mock.On call
func (*ContextResponse_Expecter) View ¶
func (_e *ContextResponse_Expecter) View() *ContextResponse_View_Call
View is a helper method to define mock.On call
func (*ContextResponse_Expecter) WithoutCookie ¶
func (_e *ContextResponse_Expecter) WithoutCookie(name interface{}) *ContextResponse_WithoutCookie_Call
WithoutCookie is a helper method to define mock.On call
- name string
func (*ContextResponse_Expecter) Writer ¶
func (_e *ContextResponse_Expecter) Writer() *ContextResponse_Writer_Call
Writer is a helper method to define mock.On call
type ContextResponse_File_Call ¶
ContextResponse_File_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'File'
func (*ContextResponse_File_Call) Return ¶
func (_c *ContextResponse_File_Call) Return(_a0 http.Response) *ContextResponse_File_Call
func (*ContextResponse_File_Call) Run ¶
func (_c *ContextResponse_File_Call) Run(run func(filepath string)) *ContextResponse_File_Call
func (*ContextResponse_File_Call) RunAndReturn ¶
func (_c *ContextResponse_File_Call) RunAndReturn(run func(string) http.Response) *ContextResponse_File_Call
type ContextResponse_Flush_Call ¶
ContextResponse_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
func (*ContextResponse_Flush_Call) Return ¶
func (_c *ContextResponse_Flush_Call) Return() *ContextResponse_Flush_Call
func (*ContextResponse_Flush_Call) Run ¶
func (_c *ContextResponse_Flush_Call) Run(run func()) *ContextResponse_Flush_Call
func (*ContextResponse_Flush_Call) RunAndReturn ¶
func (_c *ContextResponse_Flush_Call) RunAndReturn(run func()) *ContextResponse_Flush_Call
type ContextResponse_Header_Call ¶
ContextResponse_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*ContextResponse_Header_Call) Return ¶
func (_c *ContextResponse_Header_Call) Return(_a0 http.ContextResponse) *ContextResponse_Header_Call
func (*ContextResponse_Header_Call) Run ¶
func (_c *ContextResponse_Header_Call) Run(run func(key string, value string)) *ContextResponse_Header_Call
func (*ContextResponse_Header_Call) RunAndReturn ¶
func (_c *ContextResponse_Header_Call) RunAndReturn(run func(string, string) http.ContextResponse) *ContextResponse_Header_Call
type ContextResponse_Json_Call ¶
ContextResponse_Json_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Json'
func (*ContextResponse_Json_Call) Return ¶
func (_c *ContextResponse_Json_Call) Return(_a0 http.Response) *ContextResponse_Json_Call
func (*ContextResponse_Json_Call) Run ¶
func (_c *ContextResponse_Json_Call) Run(run func(code int, obj interface{})) *ContextResponse_Json_Call
func (*ContextResponse_Json_Call) RunAndReturn ¶
func (_c *ContextResponse_Json_Call) RunAndReturn(run func(int, interface{}) http.Response) *ContextResponse_Json_Call
type ContextResponse_NoContent_Call ¶
ContextResponse_NoContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NoContent'
func (*ContextResponse_NoContent_Call) Return ¶
func (_c *ContextResponse_NoContent_Call) Return(_a0 http.Response) *ContextResponse_NoContent_Call
func (*ContextResponse_NoContent_Call) Run ¶
func (_c *ContextResponse_NoContent_Call) Run(run func(code ...int)) *ContextResponse_NoContent_Call
func (*ContextResponse_NoContent_Call) RunAndReturn ¶
func (_c *ContextResponse_NoContent_Call) RunAndReturn(run func(...int) http.Response) *ContextResponse_NoContent_Call
type ContextResponse_Origin_Call ¶
ContextResponse_Origin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Origin'
func (*ContextResponse_Origin_Call) Return ¶
func (_c *ContextResponse_Origin_Call) Return(_a0 http.ResponseOrigin) *ContextResponse_Origin_Call
func (*ContextResponse_Origin_Call) Run ¶
func (_c *ContextResponse_Origin_Call) Run(run func()) *ContextResponse_Origin_Call
func (*ContextResponse_Origin_Call) RunAndReturn ¶
func (_c *ContextResponse_Origin_Call) RunAndReturn(run func() http.ResponseOrigin) *ContextResponse_Origin_Call
type ContextResponse_Redirect_Call ¶
ContextResponse_Redirect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Redirect'
func (*ContextResponse_Redirect_Call) Return ¶
func (_c *ContextResponse_Redirect_Call) Return(_a0 http.Response) *ContextResponse_Redirect_Call
func (*ContextResponse_Redirect_Call) Run ¶
func (_c *ContextResponse_Redirect_Call) Run(run func(code int, location string)) *ContextResponse_Redirect_Call
func (*ContextResponse_Redirect_Call) RunAndReturn ¶
func (_c *ContextResponse_Redirect_Call) RunAndReturn(run func(int, string) http.Response) *ContextResponse_Redirect_Call
type ContextResponse_Status_Call ¶
ContextResponse_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*ContextResponse_Status_Call) Return ¶
func (_c *ContextResponse_Status_Call) Return(_a0 http.ResponseStatus) *ContextResponse_Status_Call
func (*ContextResponse_Status_Call) Run ¶
func (_c *ContextResponse_Status_Call) Run(run func(code int)) *ContextResponse_Status_Call
func (*ContextResponse_Status_Call) RunAndReturn ¶
func (_c *ContextResponse_Status_Call) RunAndReturn(run func(int) http.ResponseStatus) *ContextResponse_Status_Call
type ContextResponse_String_Call ¶
ContextResponse_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*ContextResponse_String_Call) Return ¶
func (_c *ContextResponse_String_Call) Return(_a0 http.Response) *ContextResponse_String_Call
func (*ContextResponse_String_Call) Run ¶
func (_c *ContextResponse_String_Call) Run(run func(code int, format string, values ...interface{})) *ContextResponse_String_Call
func (*ContextResponse_String_Call) RunAndReturn ¶
func (_c *ContextResponse_String_Call) RunAndReturn(run func(int, string, ...interface{}) http.Response) *ContextResponse_String_Call
type ContextResponse_Success_Call ¶
ContextResponse_Success_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Success'
func (*ContextResponse_Success_Call) Return ¶
func (_c *ContextResponse_Success_Call) Return(_a0 http.ResponseStatus) *ContextResponse_Success_Call
func (*ContextResponse_Success_Call) Run ¶
func (_c *ContextResponse_Success_Call) Run(run func()) *ContextResponse_Success_Call
func (*ContextResponse_Success_Call) RunAndReturn ¶
func (_c *ContextResponse_Success_Call) RunAndReturn(run func() http.ResponseStatus) *ContextResponse_Success_Call
type ContextResponse_View_Call ¶
ContextResponse_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View'
func (*ContextResponse_View_Call) Return ¶
func (_c *ContextResponse_View_Call) Return(_a0 http.ResponseView) *ContextResponse_View_Call
func (*ContextResponse_View_Call) Run ¶
func (_c *ContextResponse_View_Call) Run(run func()) *ContextResponse_View_Call
func (*ContextResponse_View_Call) RunAndReturn ¶
func (_c *ContextResponse_View_Call) RunAndReturn(run func() http.ResponseView) *ContextResponse_View_Call
type ContextResponse_WithoutCookie_Call ¶
ContextResponse_WithoutCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithoutCookie'
func (*ContextResponse_WithoutCookie_Call) Return ¶
func (_c *ContextResponse_WithoutCookie_Call) Return(_a0 http.ContextResponse) *ContextResponse_WithoutCookie_Call
func (*ContextResponse_WithoutCookie_Call) Run ¶
func (_c *ContextResponse_WithoutCookie_Call) Run(run func(name string)) *ContextResponse_WithoutCookie_Call
func (*ContextResponse_WithoutCookie_Call) RunAndReturn ¶
func (_c *ContextResponse_WithoutCookie_Call) RunAndReturn(run func(string) http.ContextResponse) *ContextResponse_WithoutCookie_Call
type ContextResponse_Writer_Call ¶
ContextResponse_Writer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Writer'
func (*ContextResponse_Writer_Call) Return ¶
func (_c *ContextResponse_Writer_Call) Return(_a0 nethttp.ResponseWriter) *ContextResponse_Writer_Call
func (*ContextResponse_Writer_Call) Run ¶
func (_c *ContextResponse_Writer_Call) Run(run func()) *ContextResponse_Writer_Call
func (*ContextResponse_Writer_Call) RunAndReturn ¶
func (_c *ContextResponse_Writer_Call) RunAndReturn(run func() nethttp.ResponseWriter) *ContextResponse_Writer_Call
type Context_Context_Call ¶
Context_Context_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Context'
func (*Context_Context_Call) Return ¶
func (_c *Context_Context_Call) Return(_a0 context.Context) *Context_Context_Call
func (*Context_Context_Call) Run ¶
func (_c *Context_Context_Call) Run(run func()) *Context_Context_Call
func (*Context_Context_Call) RunAndReturn ¶
func (_c *Context_Context_Call) RunAndReturn(run func() context.Context) *Context_Context_Call
type Context_Deadline_Call ¶
Context_Deadline_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deadline'
func (*Context_Deadline_Call) Return ¶
func (_c *Context_Deadline_Call) Return(deadline time.Time, ok bool) *Context_Deadline_Call
func (*Context_Deadline_Call) Run ¶
func (_c *Context_Deadline_Call) Run(run func()) *Context_Deadline_Call
func (*Context_Deadline_Call) RunAndReturn ¶
func (_c *Context_Deadline_Call) RunAndReturn(run func() (time.Time, bool)) *Context_Deadline_Call
type Context_Done_Call ¶
Context_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*Context_Done_Call) Return ¶
func (_c *Context_Done_Call) Return(_a0 <-chan struct{}) *Context_Done_Call
func (*Context_Done_Call) Run ¶
func (_c *Context_Done_Call) Run(run func()) *Context_Done_Call
func (*Context_Done_Call) RunAndReturn ¶
func (_c *Context_Done_Call) RunAndReturn(run func() <-chan struct{}) *Context_Done_Call
type Context_Err_Call ¶
Context_Err_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Err'
func (*Context_Err_Call) Return ¶
func (_c *Context_Err_Call) Return(_a0 error) *Context_Err_Call
func (*Context_Err_Call) Run ¶
func (_c *Context_Err_Call) Run(run func()) *Context_Err_Call
func (*Context_Err_Call) RunAndReturn ¶
func (_c *Context_Err_Call) RunAndReturn(run func() error) *Context_Err_Call
type Context_Expecter ¶
type Context_Expecter struct {
// contains filtered or unexported fields
}
func (*Context_Expecter) Context ¶
func (_e *Context_Expecter) Context() *Context_Context_Call
Context is a helper method to define mock.On call
func (*Context_Expecter) Deadline ¶
func (_e *Context_Expecter) Deadline() *Context_Deadline_Call
Deadline is a helper method to define mock.On call
func (*Context_Expecter) Done ¶
func (_e *Context_Expecter) Done() *Context_Done_Call
Done is a helper method to define mock.On call
func (*Context_Expecter) Err ¶
func (_e *Context_Expecter) Err() *Context_Err_Call
Err is a helper method to define mock.On call
func (*Context_Expecter) Request ¶
func (_e *Context_Expecter) Request() *Context_Request_Call
Request is a helper method to define mock.On call
func (*Context_Expecter) Response ¶
func (_e *Context_Expecter) Response() *Context_Response_Call
Response is a helper method to define mock.On call
func (*Context_Expecter) Value ¶
func (_e *Context_Expecter) Value(key interface{}) *Context_Value_Call
Value is a helper method to define mock.On call
- key interface{}
func (*Context_Expecter) WithValue ¶
func (_e *Context_Expecter) WithValue(key interface{}, value interface{}) *Context_WithValue_Call
WithValue is a helper method to define mock.On call
- key string
- value interface{}
type Context_Request_Call ¶
Context_Request_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Request'
func (*Context_Request_Call) Return ¶
func (_c *Context_Request_Call) Return(_a0 http.ContextRequest) *Context_Request_Call
func (*Context_Request_Call) Run ¶
func (_c *Context_Request_Call) Run(run func()) *Context_Request_Call
func (*Context_Request_Call) RunAndReturn ¶
func (_c *Context_Request_Call) RunAndReturn(run func() http.ContextRequest) *Context_Request_Call
type Context_Response_Call ¶
Context_Response_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Response'
func (*Context_Response_Call) Return ¶
func (_c *Context_Response_Call) Return(_a0 http.ContextResponse) *Context_Response_Call
func (*Context_Response_Call) Run ¶
func (_c *Context_Response_Call) Run(run func()) *Context_Response_Call
func (*Context_Response_Call) RunAndReturn ¶
func (_c *Context_Response_Call) RunAndReturn(run func() http.ContextResponse) *Context_Response_Call
type Context_Value_Call ¶
Context_Value_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Value'
func (*Context_Value_Call) Return ¶
func (_c *Context_Value_Call) Return(_a0 interface{}) *Context_Value_Call
func (*Context_Value_Call) Run ¶
func (_c *Context_Value_Call) Run(run func(key interface{})) *Context_Value_Call
func (*Context_Value_Call) RunAndReturn ¶
func (_c *Context_Value_Call) RunAndReturn(run func(interface{}) interface{}) *Context_Value_Call
type Context_WithValue_Call ¶
Context_WithValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithValue'
func (*Context_WithValue_Call) Return ¶
func (_c *Context_WithValue_Call) Return() *Context_WithValue_Call
func (*Context_WithValue_Call) Run ¶
func (_c *Context_WithValue_Call) Run(run func(key string, value interface{})) *Context_WithValue_Call
func (*Context_WithValue_Call) RunAndReturn ¶
func (_c *Context_WithValue_Call) RunAndReturn(run func(string, interface{})) *Context_WithValue_Call
type FormRequest ¶
FormRequest is an autogenerated mock type for the FormRequest type
func NewFormRequest ¶
func NewFormRequest(t interface {
mock.TestingT
Cleanup(func())
}) *FormRequest
NewFormRequest creates a new instance of FormRequest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*FormRequest) Attributes ¶
func (_m *FormRequest) Attributes(ctx http.Context) map[string]string
Attributes provides a mock function with given fields: ctx
func (*FormRequest) Authorize ¶
func (_m *FormRequest) Authorize(ctx http.Context) error
Authorize provides a mock function with given fields: ctx
func (*FormRequest) EXPECT ¶
func (_m *FormRequest) EXPECT() *FormRequest_Expecter
func (*FormRequest) Messages ¶
func (_m *FormRequest) Messages(ctx http.Context) map[string]string
Messages provides a mock function with given fields: ctx
func (*FormRequest) PrepareForValidation ¶
func (_m *FormRequest) PrepareForValidation(ctx http.Context, data validation.Data) error
PrepareForValidation provides a mock function with given fields: ctx, data
type FormRequest_Attributes_Call ¶
FormRequest_Attributes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attributes'
func (*FormRequest_Attributes_Call) Return ¶
func (_c *FormRequest_Attributes_Call) Return(_a0 map[string]string) *FormRequest_Attributes_Call
func (*FormRequest_Attributes_Call) Run ¶
func (_c *FormRequest_Attributes_Call) Run(run func(ctx http.Context)) *FormRequest_Attributes_Call
func (*FormRequest_Attributes_Call) RunAndReturn ¶
func (_c *FormRequest_Attributes_Call) RunAndReturn(run func(http.Context) map[string]string) *FormRequest_Attributes_Call
type FormRequest_Authorize_Call ¶
FormRequest_Authorize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authorize'
func (*FormRequest_Authorize_Call) Return ¶
func (_c *FormRequest_Authorize_Call) Return(_a0 error) *FormRequest_Authorize_Call
func (*FormRequest_Authorize_Call) Run ¶
func (_c *FormRequest_Authorize_Call) Run(run func(ctx http.Context)) *FormRequest_Authorize_Call
func (*FormRequest_Authorize_Call) RunAndReturn ¶
func (_c *FormRequest_Authorize_Call) RunAndReturn(run func(http.Context) error) *FormRequest_Authorize_Call
type FormRequest_Expecter ¶
type FormRequest_Expecter struct {
// contains filtered or unexported fields
}
func (*FormRequest_Expecter) Attributes ¶
func (_e *FormRequest_Expecter) Attributes(ctx interface{}) *FormRequest_Attributes_Call
Attributes is a helper method to define mock.On call
- ctx http.Context
func (*FormRequest_Expecter) Authorize ¶
func (_e *FormRequest_Expecter) Authorize(ctx interface{}) *FormRequest_Authorize_Call
Authorize is a helper method to define mock.On call
- ctx http.Context
func (*FormRequest_Expecter) Messages ¶
func (_e *FormRequest_Expecter) Messages(ctx interface{}) *FormRequest_Messages_Call
Messages is a helper method to define mock.On call
- ctx http.Context
func (*FormRequest_Expecter) PrepareForValidation ¶
func (_e *FormRequest_Expecter) PrepareForValidation(ctx interface{}, data interface{}) *FormRequest_PrepareForValidation_Call
PrepareForValidation is a helper method to define mock.On call
- ctx http.Context
- data validation.Data
func (*FormRequest_Expecter) Rules ¶
func (_e *FormRequest_Expecter) Rules(ctx interface{}) *FormRequest_Rules_Call
Rules is a helper method to define mock.On call
- ctx http.Context
type FormRequest_Messages_Call ¶
FormRequest_Messages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Messages'
func (*FormRequest_Messages_Call) Return ¶
func (_c *FormRequest_Messages_Call) Return(_a0 map[string]string) *FormRequest_Messages_Call
func (*FormRequest_Messages_Call) Run ¶
func (_c *FormRequest_Messages_Call) Run(run func(ctx http.Context)) *FormRequest_Messages_Call
func (*FormRequest_Messages_Call) RunAndReturn ¶
func (_c *FormRequest_Messages_Call) RunAndReturn(run func(http.Context) map[string]string) *FormRequest_Messages_Call
type FormRequest_PrepareForValidation_Call ¶
FormRequest_PrepareForValidation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrepareForValidation'
func (*FormRequest_PrepareForValidation_Call) Return ¶
func (_c *FormRequest_PrepareForValidation_Call) Return(_a0 error) *FormRequest_PrepareForValidation_Call
func (*FormRequest_PrepareForValidation_Call) Run ¶
func (_c *FormRequest_PrepareForValidation_Call) Run(run func(ctx http.Context, data validation.Data)) *FormRequest_PrepareForValidation_Call
func (*FormRequest_PrepareForValidation_Call) RunAndReturn ¶
func (_c *FormRequest_PrepareForValidation_Call) RunAndReturn(run func(http.Context, validation.Data) error) *FormRequest_PrepareForValidation_Call
type FormRequest_Rules_Call ¶
FormRequest_Rules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rules'
func (*FormRequest_Rules_Call) Return ¶
func (_c *FormRequest_Rules_Call) Return(_a0 map[string]string) *FormRequest_Rules_Call
func (*FormRequest_Rules_Call) Run ¶
func (_c *FormRequest_Rules_Call) Run(run func(ctx http.Context)) *FormRequest_Rules_Call
func (*FormRequest_Rules_Call) RunAndReturn ¶
func (_c *FormRequest_Rules_Call) RunAndReturn(run func(http.Context) map[string]string) *FormRequest_Rules_Call
type HandlerFunc ¶
HandlerFunc is an autogenerated mock type for the HandlerFunc type
func NewHandlerFunc ¶
func NewHandlerFunc(t interface {
mock.TestingT
Cleanup(func())
}) *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. The first argument is typically a *testing.T value.
func (*HandlerFunc) EXPECT ¶
func (_m *HandlerFunc) EXPECT() *HandlerFunc_Expecter
type HandlerFunc_Execute_Call ¶
HandlerFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*HandlerFunc_Execute_Call) Return ¶
func (_c *HandlerFunc_Execute_Call) Return(_a0 http.Response) *HandlerFunc_Execute_Call
func (*HandlerFunc_Execute_Call) Run ¶
func (_c *HandlerFunc_Execute_Call) Run(run func(_a0 http.Context)) *HandlerFunc_Execute_Call
func (*HandlerFunc_Execute_Call) RunAndReturn ¶
func (_c *HandlerFunc_Execute_Call) RunAndReturn(run func(http.Context) http.Response) *HandlerFunc_Execute_Call
type HandlerFunc_Expecter ¶
type HandlerFunc_Expecter struct {
// contains filtered or unexported fields
}
func (*HandlerFunc_Expecter) Execute ¶
func (_e *HandlerFunc_Expecter) Execute(_a0 interface{}) *HandlerFunc_Execute_Call
Execute is a helper method to define mock.On call
- _a0 http.Context
type Limit ¶
Limit is an autogenerated mock type for the Limit type
func NewLimit ¶
NewLimit creates a new instance of Limit. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Limit) EXPECT ¶
func (_m *Limit) EXPECT() *Limit_Expecter
type Limit_By_Call ¶
Limit_By_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'By'
func (*Limit_By_Call) Return ¶
func (_c *Limit_By_Call) Return(_a0 http.Limit) *Limit_By_Call
func (*Limit_By_Call) Run ¶
func (_c *Limit_By_Call) Run(run func(key string)) *Limit_By_Call
func (*Limit_By_Call) RunAndReturn ¶
func (_c *Limit_By_Call) RunAndReturn(run func(string) http.Limit) *Limit_By_Call
type Limit_Expecter ¶
type Limit_Expecter struct {
// contains filtered or unexported fields
}
func (*Limit_Expecter) By ¶
func (_e *Limit_Expecter) By(key interface{}) *Limit_By_Call
By is a helper method to define mock.On call
- key string
func (*Limit_Expecter) Response ¶
func (_e *Limit_Expecter) Response(_a0 interface{}) *Limit_Response_Call
Response is a helper method to define mock.On call
- _a0 func(http.Context)
type Limit_Response_Call ¶
Limit_Response_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Response'
func (*Limit_Response_Call) Return ¶
func (_c *Limit_Response_Call) Return(_a0 http.Limit) *Limit_Response_Call
func (*Limit_Response_Call) Run ¶
func (_c *Limit_Response_Call) Run(run func(_a0 func(http.Context))) *Limit_Response_Call
func (*Limit_Response_Call) RunAndReturn ¶
func (_c *Limit_Response_Call) RunAndReturn(run func(func(http.Context)) http.Limit) *Limit_Response_Call
type Middleware ¶
Middleware is an autogenerated mock type for the Middleware type
func NewMiddleware ¶
func NewMiddleware(t interface {
mock.TestingT
Cleanup(func())
}) *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. The first argument is typically a *testing.T value.
func (*Middleware) EXPECT ¶
func (_m *Middleware) EXPECT() *Middleware_Expecter
func (*Middleware) Execute ¶
func (_m *Middleware) Execute(_a0 http.Context)
Execute provides a mock function with given fields: _a0
type Middleware_Execute_Call ¶
Middleware_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*Middleware_Execute_Call) Return ¶
func (_c *Middleware_Execute_Call) Return() *Middleware_Execute_Call
func (*Middleware_Execute_Call) Run ¶
func (_c *Middleware_Execute_Call) Run(run func(_a0 http.Context)) *Middleware_Execute_Call
func (*Middleware_Execute_Call) RunAndReturn ¶
func (_c *Middleware_Execute_Call) RunAndReturn(run func(http.Context)) *Middleware_Execute_Call
type Middleware_Expecter ¶
type Middleware_Expecter struct {
// contains filtered or unexported fields
}
func (*Middleware_Expecter) Execute ¶
func (_e *Middleware_Expecter) Execute(_a0 interface{}) *Middleware_Execute_Call
Execute is a helper method to define mock.On call
- _a0 http.Context
type RateLimiter ¶
RateLimiter is an autogenerated mock type for the RateLimiter type
func NewRateLimiter ¶
func NewRateLimiter(t interface {
mock.TestingT
Cleanup(func())
}) *RateLimiter
NewRateLimiter creates a new instance of RateLimiter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RateLimiter) EXPECT ¶
func (_m *RateLimiter) EXPECT() *RateLimiter_Expecter
func (*RateLimiter) ForWithLimits ¶
ForWithLimits provides a mock function with given fields: name, callback
type RateLimiter_Expecter ¶
type RateLimiter_Expecter struct {
// contains filtered or unexported fields
}
func (*RateLimiter_Expecter) For ¶
func (_e *RateLimiter_Expecter) For(name interface{}, callback interface{}) *RateLimiter_For_Call
For is a helper method to define mock.On call
- name string
- callback func(http.Context) http.Limit
func (*RateLimiter_Expecter) ForWithLimits ¶
func (_e *RateLimiter_Expecter) ForWithLimits(name interface{}, callback interface{}) *RateLimiter_ForWithLimits_Call
ForWithLimits is a helper method to define mock.On call
- name string
- callback func(http.Context) []http.Limit
func (*RateLimiter_Expecter) Limiter ¶
func (_e *RateLimiter_Expecter) Limiter(name interface{}) *RateLimiter_Limiter_Call
Limiter is a helper method to define mock.On call
- name string
type RateLimiter_ForWithLimits_Call ¶
RateLimiter_ForWithLimits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForWithLimits'
func (*RateLimiter_ForWithLimits_Call) Return ¶
func (_c *RateLimiter_ForWithLimits_Call) Return() *RateLimiter_ForWithLimits_Call
func (*RateLimiter_ForWithLimits_Call) Run ¶
func (_c *RateLimiter_ForWithLimits_Call) Run(run func(name string, callback func(http.Context) []http.Limit)) *RateLimiter_ForWithLimits_Call
func (*RateLimiter_ForWithLimits_Call) RunAndReturn ¶
func (_c *RateLimiter_ForWithLimits_Call) RunAndReturn(run func(string, func(http.Context) []http.Limit)) *RateLimiter_ForWithLimits_Call
type RateLimiter_For_Call ¶
RateLimiter_For_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'For'
func (*RateLimiter_For_Call) Return ¶
func (_c *RateLimiter_For_Call) Return() *RateLimiter_For_Call
func (*RateLimiter_For_Call) Run ¶
func (_c *RateLimiter_For_Call) Run(run func(name string, callback func(http.Context) http.Limit)) *RateLimiter_For_Call
func (*RateLimiter_For_Call) RunAndReturn ¶
func (_c *RateLimiter_For_Call) RunAndReturn(run func(string, func(http.Context) http.Limit)) *RateLimiter_For_Call
type RateLimiter_Limiter_Call ¶
RateLimiter_Limiter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Limiter'
func (*RateLimiter_Limiter_Call) Return ¶
func (_c *RateLimiter_Limiter_Call) Return(_a0 func(http.Context) []http.Limit) *RateLimiter_Limiter_Call
func (*RateLimiter_Limiter_Call) Run ¶
func (_c *RateLimiter_Limiter_Call) Run(run func(name string)) *RateLimiter_Limiter_Call
func (*RateLimiter_Limiter_Call) RunAndReturn ¶
func (_c *RateLimiter_Limiter_Call) RunAndReturn(run func(string) func(http.Context) []http.Limit) *RateLimiter_Limiter_Call
type ResourceController ¶
ResourceController is an autogenerated mock type for the ResourceController type
func NewResourceController ¶
func NewResourceController(t interface {
mock.TestingT
Cleanup(func())
}) *ResourceController
NewResourceController creates a new instance of ResourceController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ResourceController) Destroy ¶
func (_m *ResourceController) Destroy(_a0 http.Context) http.Response
Destroy provides a mock function with given fields: _a0
func (*ResourceController) EXPECT ¶
func (_m *ResourceController) EXPECT() *ResourceController_Expecter
func (*ResourceController) Index ¶
func (_m *ResourceController) Index(_a0 http.Context) http.Response
Index provides a mock function with given fields: _a0
func (*ResourceController) Show ¶
func (_m *ResourceController) Show(_a0 http.Context) http.Response
Show provides a mock function with given fields: _a0
type ResourceController_Destroy_Call ¶
ResourceController_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
func (*ResourceController_Destroy_Call) Return ¶
func (_c *ResourceController_Destroy_Call) Return(_a0 http.Response) *ResourceController_Destroy_Call
func (*ResourceController_Destroy_Call) Run ¶
func (_c *ResourceController_Destroy_Call) Run(run func(_a0 http.Context)) *ResourceController_Destroy_Call
func (*ResourceController_Destroy_Call) RunAndReturn ¶
func (_c *ResourceController_Destroy_Call) RunAndReturn(run func(http.Context) http.Response) *ResourceController_Destroy_Call
type ResourceController_Expecter ¶
type ResourceController_Expecter struct {
// contains filtered or unexported fields
}
func (*ResourceController_Expecter) Destroy ¶
func (_e *ResourceController_Expecter) Destroy(_a0 interface{}) *ResourceController_Destroy_Call
Destroy is a helper method to define mock.On call
- _a0 http.Context
func (*ResourceController_Expecter) Index ¶
func (_e *ResourceController_Expecter) Index(_a0 interface{}) *ResourceController_Index_Call
Index is a helper method to define mock.On call
- _a0 http.Context
func (*ResourceController_Expecter) Show ¶
func (_e *ResourceController_Expecter) Show(_a0 interface{}) *ResourceController_Show_Call
Show is a helper method to define mock.On call
- _a0 http.Context
func (*ResourceController_Expecter) Store ¶
func (_e *ResourceController_Expecter) Store(_a0 interface{}) *ResourceController_Store_Call
Store is a helper method to define mock.On call
- _a0 http.Context
func (*ResourceController_Expecter) Update ¶
func (_e *ResourceController_Expecter) Update(_a0 interface{}) *ResourceController_Update_Call
Update is a helper method to define mock.On call
- _a0 http.Context
type ResourceController_Index_Call ¶
ResourceController_Index_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Index'
func (*ResourceController_Index_Call) Return ¶
func (_c *ResourceController_Index_Call) Return(_a0 http.Response) *ResourceController_Index_Call
func (*ResourceController_Index_Call) Run ¶
func (_c *ResourceController_Index_Call) Run(run func(_a0 http.Context)) *ResourceController_Index_Call
func (*ResourceController_Index_Call) RunAndReturn ¶
func (_c *ResourceController_Index_Call) RunAndReturn(run func(http.Context) http.Response) *ResourceController_Index_Call
type ResourceController_Show_Call ¶
ResourceController_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
func (*ResourceController_Show_Call) Return ¶
func (_c *ResourceController_Show_Call) Return(_a0 http.Response) *ResourceController_Show_Call
func (*ResourceController_Show_Call) Run ¶
func (_c *ResourceController_Show_Call) Run(run func(_a0 http.Context)) *ResourceController_Show_Call
func (*ResourceController_Show_Call) RunAndReturn ¶
func (_c *ResourceController_Show_Call) RunAndReturn(run func(http.Context) http.Response) *ResourceController_Show_Call
type ResourceController_Store_Call ¶
ResourceController_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'
func (*ResourceController_Store_Call) Return ¶
func (_c *ResourceController_Store_Call) Return(_a0 http.Response) *ResourceController_Store_Call
func (*ResourceController_Store_Call) Run ¶
func (_c *ResourceController_Store_Call) Run(run func(_a0 http.Context)) *ResourceController_Store_Call
func (*ResourceController_Store_Call) RunAndReturn ¶
func (_c *ResourceController_Store_Call) RunAndReturn(run func(http.Context) http.Response) *ResourceController_Store_Call
type ResourceController_Update_Call ¶
ResourceController_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ResourceController_Update_Call) Return ¶
func (_c *ResourceController_Update_Call) Return(_a0 http.Response) *ResourceController_Update_Call
func (*ResourceController_Update_Call) Run ¶
func (_c *ResourceController_Update_Call) Run(run func(_a0 http.Context)) *ResourceController_Update_Call
func (*ResourceController_Update_Call) RunAndReturn ¶
func (_c *ResourceController_Update_Call) RunAndReturn(run func(http.Context) http.Response) *ResourceController_Update_Call
type Response ¶
Response is an autogenerated mock type for the Response type
func NewResponse ¶
NewResponse creates a new instance of Response. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Response) EXPECT ¶
func (_m *Response) EXPECT() *Response_Expecter
type ResponseOrigin ¶
ResponseOrigin is an autogenerated mock type for the ResponseOrigin type
func NewResponseOrigin ¶
func NewResponseOrigin(t interface {
mock.TestingT
Cleanup(func())
}) *ResponseOrigin
NewResponseOrigin creates a new instance of ResponseOrigin. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ResponseOrigin) Body ¶
func (_m *ResponseOrigin) Body() *bytes.Buffer
Body provides a mock function with given fields:
func (*ResponseOrigin) EXPECT ¶
func (_m *ResponseOrigin) EXPECT() *ResponseOrigin_Expecter
func (*ResponseOrigin) Header ¶
func (_m *ResponseOrigin) Header() nethttp.Header
Header provides a mock function with given fields:
func (*ResponseOrigin) Size ¶
func (_m *ResponseOrigin) Size() int
Size provides a mock function with given fields:
func (*ResponseOrigin) Status ¶
func (_m *ResponseOrigin) Status() int
Status provides a mock function with given fields:
type ResponseOrigin_Body_Call ¶
ResponseOrigin_Body_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Body'
func (*ResponseOrigin_Body_Call) Return ¶
func (_c *ResponseOrigin_Body_Call) Return(_a0 *bytes.Buffer) *ResponseOrigin_Body_Call
func (*ResponseOrigin_Body_Call) Run ¶
func (_c *ResponseOrigin_Body_Call) Run(run func()) *ResponseOrigin_Body_Call
func (*ResponseOrigin_Body_Call) RunAndReturn ¶
func (_c *ResponseOrigin_Body_Call) RunAndReturn(run func() *bytes.Buffer) *ResponseOrigin_Body_Call
type ResponseOrigin_Expecter ¶
type ResponseOrigin_Expecter struct {
// contains filtered or unexported fields
}
func (*ResponseOrigin_Expecter) Body ¶
func (_e *ResponseOrigin_Expecter) Body() *ResponseOrigin_Body_Call
Body is a helper method to define mock.On call
func (*ResponseOrigin_Expecter) Header ¶
func (_e *ResponseOrigin_Expecter) Header() *ResponseOrigin_Header_Call
Header is a helper method to define mock.On call
func (*ResponseOrigin_Expecter) Size ¶
func (_e *ResponseOrigin_Expecter) Size() *ResponseOrigin_Size_Call
Size is a helper method to define mock.On call
func (*ResponseOrigin_Expecter) Status ¶
func (_e *ResponseOrigin_Expecter) Status() *ResponseOrigin_Status_Call
Status is a helper method to define mock.On call
type ResponseOrigin_Header_Call ¶
ResponseOrigin_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*ResponseOrigin_Header_Call) Return ¶
func (_c *ResponseOrigin_Header_Call) Return(_a0 nethttp.Header) *ResponseOrigin_Header_Call
func (*ResponseOrigin_Header_Call) Run ¶
func (_c *ResponseOrigin_Header_Call) Run(run func()) *ResponseOrigin_Header_Call
func (*ResponseOrigin_Header_Call) RunAndReturn ¶
func (_c *ResponseOrigin_Header_Call) RunAndReturn(run func() nethttp.Header) *ResponseOrigin_Header_Call
type ResponseOrigin_Size_Call ¶
ResponseOrigin_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
func (*ResponseOrigin_Size_Call) Return ¶
func (_c *ResponseOrigin_Size_Call) Return(_a0 int) *ResponseOrigin_Size_Call
func (*ResponseOrigin_Size_Call) Run ¶
func (_c *ResponseOrigin_Size_Call) Run(run func()) *ResponseOrigin_Size_Call
func (*ResponseOrigin_Size_Call) RunAndReturn ¶
func (_c *ResponseOrigin_Size_Call) RunAndReturn(run func() int) *ResponseOrigin_Size_Call
type ResponseOrigin_Status_Call ¶
ResponseOrigin_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*ResponseOrigin_Status_Call) Return ¶
func (_c *ResponseOrigin_Status_Call) Return(_a0 int) *ResponseOrigin_Status_Call
func (*ResponseOrigin_Status_Call) Run ¶
func (_c *ResponseOrigin_Status_Call) Run(run func()) *ResponseOrigin_Status_Call
func (*ResponseOrigin_Status_Call) RunAndReturn ¶
func (_c *ResponseOrigin_Status_Call) RunAndReturn(run func() int) *ResponseOrigin_Status_Call
type ResponseStatus ¶
ResponseStatus is an autogenerated mock type for the ResponseStatus type
func NewResponseStatus ¶
func NewResponseStatus(t interface {
mock.TestingT
Cleanup(func())
}) *ResponseStatus
NewResponseStatus creates a new instance of ResponseStatus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ResponseStatus) Data ¶
func (_m *ResponseStatus) Data(contentType string, data []byte) http.Response
Data provides a mock function with given fields: contentType, data
func (*ResponseStatus) EXPECT ¶
func (_m *ResponseStatus) EXPECT() *ResponseStatus_Expecter
func (*ResponseStatus) Json ¶
func (_m *ResponseStatus) Json(obj interface{}) http.Response
Json provides a mock function with given fields: obj
type ResponseStatus_Data_Call ¶
ResponseStatus_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'
func (*ResponseStatus_Data_Call) Return ¶
func (_c *ResponseStatus_Data_Call) Return(_a0 http.Response) *ResponseStatus_Data_Call
func (*ResponseStatus_Data_Call) Run ¶
func (_c *ResponseStatus_Data_Call) Run(run func(contentType string, data []byte)) *ResponseStatus_Data_Call
func (*ResponseStatus_Data_Call) RunAndReturn ¶
func (_c *ResponseStatus_Data_Call) RunAndReturn(run func(string, []byte) http.Response) *ResponseStatus_Data_Call
type ResponseStatus_Expecter ¶
type ResponseStatus_Expecter struct {
// contains filtered or unexported fields
}
func (*ResponseStatus_Expecter) Data ¶
func (_e *ResponseStatus_Expecter) Data(contentType interface{}, data interface{}) *ResponseStatus_Data_Call
Data is a helper method to define mock.On call
- contentType string
- data []byte
func (*ResponseStatus_Expecter) Json ¶
func (_e *ResponseStatus_Expecter) Json(obj interface{}) *ResponseStatus_Json_Call
Json is a helper method to define mock.On call
- obj interface{}
func (*ResponseStatus_Expecter) String ¶
func (_e *ResponseStatus_Expecter) String(format interface{}, values ...interface{}) *ResponseStatus_String_Call
String is a helper method to define mock.On call
- format string
- values ...interface{}
type ResponseStatus_Json_Call ¶
ResponseStatus_Json_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Json'
func (*ResponseStatus_Json_Call) Return ¶
func (_c *ResponseStatus_Json_Call) Return(_a0 http.Response) *ResponseStatus_Json_Call
func (*ResponseStatus_Json_Call) Run ¶
func (_c *ResponseStatus_Json_Call) Run(run func(obj interface{})) *ResponseStatus_Json_Call
func (*ResponseStatus_Json_Call) RunAndReturn ¶
func (_c *ResponseStatus_Json_Call) RunAndReturn(run func(interface{}) http.Response) *ResponseStatus_Json_Call
type ResponseStatus_String_Call ¶
ResponseStatus_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*ResponseStatus_String_Call) Return ¶
func (_c *ResponseStatus_String_Call) Return(_a0 http.Response) *ResponseStatus_String_Call
func (*ResponseStatus_String_Call) Run ¶
func (_c *ResponseStatus_String_Call) Run(run func(format string, values ...interface{})) *ResponseStatus_String_Call
func (*ResponseStatus_String_Call) RunAndReturn ¶
func (_c *ResponseStatus_String_Call) RunAndReturn(run func(string, ...interface{}) http.Response) *ResponseStatus_String_Call
type ResponseSuccess ¶
ResponseSuccess is an autogenerated mock type for the ResponseSuccess type
func NewResponseSuccess ¶
func NewResponseSuccess(t interface {
mock.TestingT
Cleanup(func())
}) *ResponseSuccess
NewResponseSuccess creates a new instance of ResponseSuccess. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ResponseSuccess) Data ¶
func (_m *ResponseSuccess) Data(contentType string, data []byte) http.Response
Data provides a mock function with given fields: contentType, data
func (*ResponseSuccess) EXPECT ¶
func (_m *ResponseSuccess) EXPECT() *ResponseSuccess_Expecter
func (*ResponseSuccess) Json ¶
func (_m *ResponseSuccess) Json(obj interface{}) http.Response
Json provides a mock function with given fields: obj
type ResponseSuccess_Data_Call ¶
ResponseSuccess_Data_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Data'
func (*ResponseSuccess_Data_Call) Return ¶
func (_c *ResponseSuccess_Data_Call) Return(_a0 http.Response) *ResponseSuccess_Data_Call
func (*ResponseSuccess_Data_Call) Run ¶
func (_c *ResponseSuccess_Data_Call) Run(run func(contentType string, data []byte)) *ResponseSuccess_Data_Call
func (*ResponseSuccess_Data_Call) RunAndReturn ¶
func (_c *ResponseSuccess_Data_Call) RunAndReturn(run func(string, []byte) http.Response) *ResponseSuccess_Data_Call
type ResponseSuccess_Expecter ¶
type ResponseSuccess_Expecter struct {
// contains filtered or unexported fields
}
func (*ResponseSuccess_Expecter) Data ¶
func (_e *ResponseSuccess_Expecter) Data(contentType interface{}, data interface{}) *ResponseSuccess_Data_Call
Data is a helper method to define mock.On call
- contentType string
- data []byte
func (*ResponseSuccess_Expecter) Json ¶
func (_e *ResponseSuccess_Expecter) Json(obj interface{}) *ResponseSuccess_Json_Call
Json is a helper method to define mock.On call
- obj interface{}
func (*ResponseSuccess_Expecter) String ¶
func (_e *ResponseSuccess_Expecter) String(format interface{}, values ...interface{}) *ResponseSuccess_String_Call
String is a helper method to define mock.On call
- format string
- values ...interface{}
type ResponseSuccess_Json_Call ¶
ResponseSuccess_Json_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Json'
func (*ResponseSuccess_Json_Call) Return ¶
func (_c *ResponseSuccess_Json_Call) Return(_a0 http.Response) *ResponseSuccess_Json_Call
func (*ResponseSuccess_Json_Call) Run ¶
func (_c *ResponseSuccess_Json_Call) Run(run func(obj interface{})) *ResponseSuccess_Json_Call
func (*ResponseSuccess_Json_Call) RunAndReturn ¶
func (_c *ResponseSuccess_Json_Call) RunAndReturn(run func(interface{}) http.Response) *ResponseSuccess_Json_Call
type ResponseSuccess_String_Call ¶
ResponseSuccess_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*ResponseSuccess_String_Call) Return ¶
func (_c *ResponseSuccess_String_Call) Return(_a0 http.Response) *ResponseSuccess_String_Call
func (*ResponseSuccess_String_Call) Run ¶
func (_c *ResponseSuccess_String_Call) Run(run func(format string, values ...interface{})) *ResponseSuccess_String_Call
func (*ResponseSuccess_String_Call) RunAndReturn ¶
func (_c *ResponseSuccess_String_Call) RunAndReturn(run func(string, ...interface{}) http.Response) *ResponseSuccess_String_Call
type ResponseView ¶
ResponseView is an autogenerated mock type for the ResponseView type
func NewResponseView ¶
func NewResponseView(t interface {
mock.TestingT
Cleanup(func())
}) *ResponseView
NewResponseView creates a new instance of ResponseView. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ResponseView) EXPECT ¶
func (_m *ResponseView) EXPECT() *ResponseView_Expecter
type ResponseView_Expecter ¶
type ResponseView_Expecter struct {
// contains filtered or unexported fields
}
func (*ResponseView_Expecter) First ¶
func (_e *ResponseView_Expecter) First(views interface{}, data ...interface{}) *ResponseView_First_Call
First is a helper method to define mock.On call
- views []string
- data ...interface{}
func (*ResponseView_Expecter) Make ¶
func (_e *ResponseView_Expecter) Make(view interface{}, data ...interface{}) *ResponseView_Make_Call
Make is a helper method to define mock.On call
- view string
- data ...interface{}
type ResponseView_First_Call ¶
ResponseView_First_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'First'
func (*ResponseView_First_Call) Return ¶
func (_c *ResponseView_First_Call) Return(_a0 http.Response) *ResponseView_First_Call
func (*ResponseView_First_Call) Run ¶
func (_c *ResponseView_First_Call) Run(run func(views []string, data ...interface{})) *ResponseView_First_Call
func (*ResponseView_First_Call) RunAndReturn ¶
func (_c *ResponseView_First_Call) RunAndReturn(run func([]string, ...interface{}) http.Response) *ResponseView_First_Call
type ResponseView_Make_Call ¶
ResponseView_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'
func (*ResponseView_Make_Call) Return ¶
func (_c *ResponseView_Make_Call) Return(_a0 http.Response) *ResponseView_Make_Call
func (*ResponseView_Make_Call) Run ¶
func (_c *ResponseView_Make_Call) Run(run func(view string, data ...interface{})) *ResponseView_Make_Call
func (*ResponseView_Make_Call) RunAndReturn ¶
func (_c *ResponseView_Make_Call) RunAndReturn(run func(string, ...interface{}) http.Response) *ResponseView_Make_Call
type Response_Expecter ¶
type Response_Expecter struct {
// contains filtered or unexported fields
}
func (*Response_Expecter) Render ¶
func (_e *Response_Expecter) Render() *Response_Render_Call
Render is a helper method to define mock.On call
type Response_Render_Call ¶
Response_Render_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Render'
func (*Response_Render_Call) Return ¶
func (_c *Response_Render_Call) Return(_a0 error) *Response_Render_Call
func (*Response_Render_Call) Run ¶
func (_c *Response_Render_Call) Run(run func()) *Response_Render_Call
func (*Response_Render_Call) RunAndReturn ¶
func (_c *Response_Render_Call) RunAndReturn(run func() error) *Response_Render_Call
type View ¶
View is an autogenerated mock type for the View type
func NewView ¶
NewView creates a new instance of View. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*View) EXPECT ¶
func (_m *View) EXPECT() *View_Expecter
type View_Exists_Call ¶
View_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*View_Exists_Call) Return ¶
func (_c *View_Exists_Call) Return(_a0 bool) *View_Exists_Call
func (*View_Exists_Call) Run ¶
func (_c *View_Exists_Call) Run(run func(view string)) *View_Exists_Call
func (*View_Exists_Call) RunAndReturn ¶
func (_c *View_Exists_Call) RunAndReturn(run func(string) bool) *View_Exists_Call
type View_Expecter ¶
type View_Expecter struct {
// contains filtered or unexported fields
}
func (*View_Expecter) Exists ¶
func (_e *View_Expecter) Exists(view interface{}) *View_Exists_Call
Exists is a helper method to define mock.On call
- view string
func (*View_Expecter) GetShared ¶
func (_e *View_Expecter) GetShared() *View_GetShared_Call
GetShared is a helper method to define mock.On call
func (*View_Expecter) Share ¶
func (_e *View_Expecter) Share(key interface{}, value interface{}) *View_Share_Call
Share is a helper method to define mock.On call
- key string
- value interface{}
func (*View_Expecter) Shared ¶
func (_e *View_Expecter) Shared(key interface{}, def ...interface{}) *View_Shared_Call
Shared is a helper method to define mock.On call
- key string
- def ...interface{}
type View_GetShared_Call ¶
type View_GetShared_Call struct {
}
View_GetShared_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShared'
func (*View_GetShared_Call) Return ¶
func (_c *View_GetShared_Call) Return(_a0 map[string]interface{}) *View_GetShared_Call
func (*View_GetShared_Call) Run ¶
func (_c *View_GetShared_Call) Run(run func()) *View_GetShared_Call
func (*View_GetShared_Call) RunAndReturn ¶
func (_c *View_GetShared_Call) RunAndReturn(run func() map[string]interface{}) *View_GetShared_Call
type View_Share_Call ¶
type View_Share_Call struct {
}
View_Share_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Share'
func (*View_Share_Call) Return ¶
func (_c *View_Share_Call) Return() *View_Share_Call
func (*View_Share_Call) Run ¶
func (_c *View_Share_Call) Run(run func(key string, value interface{})) *View_Share_Call
func (*View_Share_Call) RunAndReturn ¶
func (_c *View_Share_Call) RunAndReturn(run func(string, interface{})) *View_Share_Call
type View_Shared_Call ¶
type View_Shared_Call struct {
}
View_Shared_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shared'
func (*View_Shared_Call) Return ¶
func (_c *View_Shared_Call) Return(_a0 interface{}) *View_Shared_Call
func (*View_Shared_Call) Run ¶
func (_c *View_Shared_Call) Run(run func(key string, def ...interface{})) *View_Shared_Call
func (*View_Shared_Call) RunAndReturn ¶
func (_c *View_Shared_Call) RunAndReturn(run func(string, ...interface{}) interface{}) *View_Shared_Call