Documentation
¶
Index ¶
- type Client
- type Client_Expecter
- type Request
- func (_m *Request) Accept(contentType string) client.Request
- func (_m *Request) AcceptJSON() client.Request
- func (_m *Request) AsForm() client.Request
- func (_m *Request) Bind(value interface{}) client.Request
- func (_m *Request) Clone() client.Request
- func (_m *Request) Delete(uri string, body io.Reader) (client.Response, error)
- func (_m *Request) EXPECT() *Request_Expecter
- func (_m *Request) FlushHeaders() client.Request
- func (_m *Request) Get(uri string) (client.Response, error)
- func (_m *Request) Head(uri string) (client.Response, error)
- func (_m *Request) Options(uri string) (client.Response, error)
- func (_m *Request) Patch(uri string, body io.Reader) (client.Response, error)
- func (_m *Request) Post(uri string, body io.Reader) (client.Response, error)
- func (_m *Request) Put(uri string, body io.Reader) (client.Response, error)
- func (_m *Request) ReplaceHeaders(headers map[string]string) client.Request
- func (_m *Request) WithBasicAuth(username string, password string) client.Request
- func (_m *Request) WithContext(ctx context.Context) client.Request
- func (_m *Request) WithCookie(cookie *http.Cookie) client.Request
- func (_m *Request) WithCookies(cookies []*http.Cookie) client.Request
- func (_m *Request) WithHeader(key string, value string) client.Request
- func (_m *Request) WithHeaders(_a0 map[string]string) client.Request
- func (_m *Request) WithQueryParameter(key string, value string) client.Request
- func (_m *Request) WithQueryParameters(_a0 map[string]string) client.Request
- func (_m *Request) WithQueryString(query string) client.Request
- func (_m *Request) WithToken(token string, ttype ...string) client.Request
- func (_m *Request) WithUrlParameter(key string, value string) client.Request
- func (_m *Request) WithUrlParameters(_a0 map[string]string) client.Request
- func (_m *Request) WithoutHeader(key string) client.Request
- func (_m *Request) WithoutToken() client.Request
- type Request_AcceptJSON_Call
- type Request_Accept_Call
- type Request_AsForm_Call
- type Request_Bind_Call
- type Request_Clone_Call
- type Request_Delete_Call
- func (_c *Request_Delete_Call) Return(_a0 client.Response, _a1 error) *Request_Delete_Call
- func (_c *Request_Delete_Call) Run(run func(uri string, body io.Reader)) *Request_Delete_Call
- func (_c *Request_Delete_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Request_Delete_Call
- type Request_Expecter
- func (_e *Request_Expecter) Accept(contentType interface{}) *Request_Accept_Call
- func (_e *Request_Expecter) AcceptJSON() *Request_AcceptJSON_Call
- func (_e *Request_Expecter) AsForm() *Request_AsForm_Call
- func (_e *Request_Expecter) Bind(value interface{}) *Request_Bind_Call
- func (_e *Request_Expecter) Clone() *Request_Clone_Call
- func (_e *Request_Expecter) Delete(uri interface{}, body interface{}) *Request_Delete_Call
- func (_e *Request_Expecter) FlushHeaders() *Request_FlushHeaders_Call
- func (_e *Request_Expecter) Get(uri interface{}) *Request_Get_Call
- func (_e *Request_Expecter) Head(uri interface{}) *Request_Head_Call
- func (_e *Request_Expecter) Options(uri interface{}) *Request_Options_Call
- func (_e *Request_Expecter) Patch(uri interface{}, body interface{}) *Request_Patch_Call
- func (_e *Request_Expecter) Post(uri interface{}, body interface{}) *Request_Post_Call
- func (_e *Request_Expecter) Put(uri interface{}, body interface{}) *Request_Put_Call
- func (_e *Request_Expecter) ReplaceHeaders(headers interface{}) *Request_ReplaceHeaders_Call
- func (_e *Request_Expecter) WithBasicAuth(username interface{}, password interface{}) *Request_WithBasicAuth_Call
- func (_e *Request_Expecter) WithContext(ctx interface{}) *Request_WithContext_Call
- func (_e *Request_Expecter) WithCookie(cookie interface{}) *Request_WithCookie_Call
- func (_e *Request_Expecter) WithCookies(cookies interface{}) *Request_WithCookies_Call
- func (_e *Request_Expecter) WithHeader(key interface{}, value interface{}) *Request_WithHeader_Call
- func (_e *Request_Expecter) WithHeaders(_a0 interface{}) *Request_WithHeaders_Call
- func (_e *Request_Expecter) WithQueryParameter(key interface{}, value interface{}) *Request_WithQueryParameter_Call
- func (_e *Request_Expecter) WithQueryParameters(_a0 interface{}) *Request_WithQueryParameters_Call
- func (_e *Request_Expecter) WithQueryString(query interface{}) *Request_WithQueryString_Call
- func (_e *Request_Expecter) WithToken(token interface{}, ttype ...interface{}) *Request_WithToken_Call
- func (_e *Request_Expecter) WithUrlParameter(key interface{}, value interface{}) *Request_WithUrlParameter_Call
- func (_e *Request_Expecter) WithUrlParameters(_a0 interface{}) *Request_WithUrlParameters_Call
- func (_e *Request_Expecter) WithoutHeader(key interface{}) *Request_WithoutHeader_Call
- func (_e *Request_Expecter) WithoutToken() *Request_WithoutToken_Call
- type Request_FlushHeaders_Call
- type Request_Get_Call
- type Request_Head_Call
- type Request_Options_Call
- type Request_Patch_Call
- type Request_Post_Call
- type Request_Put_Call
- type Request_ReplaceHeaders_Call
- func (_c *Request_ReplaceHeaders_Call) Return(_a0 client.Request) *Request_ReplaceHeaders_Call
- func (_c *Request_ReplaceHeaders_Call) Run(run func(headers map[string]string)) *Request_ReplaceHeaders_Call
- func (_c *Request_ReplaceHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_ReplaceHeaders_Call
- type Request_WithBasicAuth_Call
- func (_c *Request_WithBasicAuth_Call) Return(_a0 client.Request) *Request_WithBasicAuth_Call
- func (_c *Request_WithBasicAuth_Call) Run(run func(username string, password string)) *Request_WithBasicAuth_Call
- func (_c *Request_WithBasicAuth_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithBasicAuth_Call
- type Request_WithContext_Call
- func (_c *Request_WithContext_Call) Return(_a0 client.Request) *Request_WithContext_Call
- func (_c *Request_WithContext_Call) Run(run func(ctx context.Context)) *Request_WithContext_Call
- func (_c *Request_WithContext_Call) RunAndReturn(run func(context.Context) client.Request) *Request_WithContext_Call
- type Request_WithCookie_Call
- type Request_WithCookies_Call
- func (_c *Request_WithCookies_Call) Return(_a0 client.Request) *Request_WithCookies_Call
- func (_c *Request_WithCookies_Call) Run(run func(cookies []*http.Cookie)) *Request_WithCookies_Call
- func (_c *Request_WithCookies_Call) RunAndReturn(run func([]*http.Cookie) client.Request) *Request_WithCookies_Call
- type Request_WithHeader_Call
- func (_c *Request_WithHeader_Call) Return(_a0 client.Request) *Request_WithHeader_Call
- func (_c *Request_WithHeader_Call) Run(run func(key string, value string)) *Request_WithHeader_Call
- func (_c *Request_WithHeader_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithHeader_Call
- type Request_WithHeaders_Call
- func (_c *Request_WithHeaders_Call) Return(_a0 client.Request) *Request_WithHeaders_Call
- func (_c *Request_WithHeaders_Call) Run(run func(_a0 map[string]string)) *Request_WithHeaders_Call
- func (_c *Request_WithHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithHeaders_Call
- type Request_WithQueryParameter_Call
- func (_c *Request_WithQueryParameter_Call) Return(_a0 client.Request) *Request_WithQueryParameter_Call
- func (_c *Request_WithQueryParameter_Call) Run(run func(key string, value string)) *Request_WithQueryParameter_Call
- func (_c *Request_WithQueryParameter_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithQueryParameter_Call
- type Request_WithQueryParameters_Call
- func (_c *Request_WithQueryParameters_Call) Return(_a0 client.Request) *Request_WithQueryParameters_Call
- func (_c *Request_WithQueryParameters_Call) Run(run func(_a0 map[string]string)) *Request_WithQueryParameters_Call
- func (_c *Request_WithQueryParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithQueryParameters_Call
- type Request_WithQueryString_Call
- func (_c *Request_WithQueryString_Call) Return(_a0 client.Request) *Request_WithQueryString_Call
- func (_c *Request_WithQueryString_Call) Run(run func(query string)) *Request_WithQueryString_Call
- func (_c *Request_WithQueryString_Call) RunAndReturn(run func(string) client.Request) *Request_WithQueryString_Call
- type Request_WithToken_Call
- func (_c *Request_WithToken_Call) Return(_a0 client.Request) *Request_WithToken_Call
- func (_c *Request_WithToken_Call) Run(run func(token string, ttype ...string)) *Request_WithToken_Call
- func (_c *Request_WithToken_Call) RunAndReturn(run func(string, ...string) client.Request) *Request_WithToken_Call
- type Request_WithUrlParameter_Call
- func (_c *Request_WithUrlParameter_Call) Return(_a0 client.Request) *Request_WithUrlParameter_Call
- func (_c *Request_WithUrlParameter_Call) Run(run func(key string, value string)) *Request_WithUrlParameter_Call
- func (_c *Request_WithUrlParameter_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithUrlParameter_Call
- type Request_WithUrlParameters_Call
- func (_c *Request_WithUrlParameters_Call) Return(_a0 client.Request) *Request_WithUrlParameters_Call
- func (_c *Request_WithUrlParameters_Call) Run(run func(_a0 map[string]string)) *Request_WithUrlParameters_Call
- func (_c *Request_WithUrlParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithUrlParameters_Call
- type Request_WithoutHeader_Call
- type Request_WithoutToken_Call
- type Response
- func (_m *Response) Accepted() bool
- func (_m *Response) BadRequest() bool
- func (_m *Response) Body() (string, error)
- func (_m *Response) ClientError() bool
- func (_m *Response) Conflict() bool
- func (_m *Response) Cookie(name string) *http.Cookie
- func (_m *Response) Cookies() []*http.Cookie
- func (_m *Response) Created() bool
- func (_m *Response) EXPECT() *Response_Expecter
- func (_m *Response) Failed() bool
- func (_m *Response) Forbidden() bool
- func (_m *Response) Found() bool
- func (_m *Response) Header(name string) string
- func (_m *Response) Headers() http.Header
- func (_m *Response) Json() (map[string]interface{}, error)
- func (_m *Response) MovedPermanently() bool
- func (_m *Response) NoContent() bool
- func (_m *Response) NotFound() bool
- func (_m *Response) OK() bool
- func (_m *Response) PaymentRequired() bool
- func (_m *Response) Redirect() bool
- func (_m *Response) RequestTimeout() bool
- func (_m *Response) ServerError() bool
- func (_m *Response) Status() int
- func (_m *Response) Successful() bool
- func (_m *Response) TooManyRequests() bool
- func (_m *Response) Unauthorized() bool
- func (_m *Response) UnprocessableEntity() bool
- type Response_Accepted_Call
- type Response_BadRequest_Call
- type Response_Body_Call
- type Response_ClientError_Call
- type Response_Conflict_Call
- type Response_Cookie_Call
- type Response_Cookies_Call
- type Response_Created_Call
- type Response_Expecter
- func (_e *Response_Expecter) Accepted() *Response_Accepted_Call
- func (_e *Response_Expecter) BadRequest() *Response_BadRequest_Call
- func (_e *Response_Expecter) Body() *Response_Body_Call
- func (_e *Response_Expecter) ClientError() *Response_ClientError_Call
- func (_e *Response_Expecter) Conflict() *Response_Conflict_Call
- func (_e *Response_Expecter) Cookie(name interface{}) *Response_Cookie_Call
- func (_e *Response_Expecter) Cookies() *Response_Cookies_Call
- func (_e *Response_Expecter) Created() *Response_Created_Call
- func (_e *Response_Expecter) Failed() *Response_Failed_Call
- func (_e *Response_Expecter) Forbidden() *Response_Forbidden_Call
- func (_e *Response_Expecter) Found() *Response_Found_Call
- func (_e *Response_Expecter) Header(name interface{}) *Response_Header_Call
- func (_e *Response_Expecter) Headers() *Response_Headers_Call
- func (_e *Response_Expecter) Json() *Response_Json_Call
- func (_e *Response_Expecter) MovedPermanently() *Response_MovedPermanently_Call
- func (_e *Response_Expecter) NoContent() *Response_NoContent_Call
- func (_e *Response_Expecter) NotFound() *Response_NotFound_Call
- func (_e *Response_Expecter) OK() *Response_OK_Call
- func (_e *Response_Expecter) PaymentRequired() *Response_PaymentRequired_Call
- func (_e *Response_Expecter) Redirect() *Response_Redirect_Call
- func (_e *Response_Expecter) RequestTimeout() *Response_RequestTimeout_Call
- func (_e *Response_Expecter) ServerError() *Response_ServerError_Call
- func (_e *Response_Expecter) Status() *Response_Status_Call
- func (_e *Response_Expecter) Successful() *Response_Successful_Call
- func (_e *Response_Expecter) TooManyRequests() *Response_TooManyRequests_Call
- func (_e *Response_Expecter) Unauthorized() *Response_Unauthorized_Call
- func (_e *Response_Expecter) UnprocessableEntity() *Response_UnprocessableEntity_Call
- type Response_Failed_Call
- type Response_Forbidden_Call
- type Response_Found_Call
- type Response_Header_Call
- type Response_Headers_Call
- type Response_Json_Call
- type Response_MovedPermanently_Call
- type Response_NoContent_Call
- type Response_NotFound_Call
- type Response_OK_Call
- type Response_PaymentRequired_Call
- type Response_Redirect_Call
- type Response_RequestTimeout_Call
- type Response_ServerError_Call
- type Response_Status_Call
- type Response_Successful_Call
- type Response_TooManyRequests_Call
- type Response_Unauthorized_Call
- type Response_UnprocessableEntity_Call
- func (_c *Response_UnprocessableEntity_Call) Return(_a0 bool) *Response_UnprocessableEntity_Call
- func (_c *Response_UnprocessableEntity_Call) Run(run func()) *Response_UnprocessableEntity_Call
- func (_c *Response_UnprocessableEntity_Call) RunAndReturn(run func() bool) *Response_UnprocessableEntity_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. 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 (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
type Request ¶
Request is an autogenerated mock type for the Request type
func NewRequest ¶
NewRequest creates a new instance of Request. 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 (*Request) AcceptJSON ¶
AcceptJSON provides a mock function with no fields
func (*Request) EXPECT ¶
func (_m *Request) EXPECT() *Request_Expecter
func (*Request) FlushHeaders ¶
FlushHeaders provides a mock function with no fields
func (*Request) ReplaceHeaders ¶
ReplaceHeaders provides a mock function with given fields: headers
func (*Request) WithBasicAuth ¶
WithBasicAuth provides a mock function with given fields: username, password
func (*Request) WithContext ¶
WithContext provides a mock function with given fields: ctx
func (*Request) WithCookie ¶
WithCookie provides a mock function with given fields: cookie
func (*Request) WithCookies ¶
WithCookies provides a mock function with given fields: cookies
func (*Request) WithHeader ¶
WithHeader provides a mock function with given fields: key, value
func (*Request) WithHeaders ¶
WithHeaders provides a mock function with given fields: _a0
func (*Request) WithQueryParameter ¶
WithQueryParameter provides a mock function with given fields: key, value
func (*Request) WithQueryParameters ¶
WithQueryParameters provides a mock function with given fields: _a0
func (*Request) WithQueryString ¶
WithQueryString provides a mock function with given fields: query
func (*Request) WithUrlParameter ¶
WithUrlParameter provides a mock function with given fields: key, value
func (*Request) WithUrlParameters ¶
WithUrlParameters provides a mock function with given fields: _a0
func (*Request) WithoutHeader ¶
WithoutHeader provides a mock function with given fields: key
func (*Request) WithoutToken ¶
WithoutToken provides a mock function with no fields
type Request_AcceptJSON_Call ¶
Request_AcceptJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AcceptJSON'
func (*Request_AcceptJSON_Call) Return ¶
func (_c *Request_AcceptJSON_Call) Return(_a0 client.Request) *Request_AcceptJSON_Call
func (*Request_AcceptJSON_Call) Run ¶
func (_c *Request_AcceptJSON_Call) Run(run func()) *Request_AcceptJSON_Call
func (*Request_AcceptJSON_Call) RunAndReturn ¶
func (_c *Request_AcceptJSON_Call) RunAndReturn(run func() client.Request) *Request_AcceptJSON_Call
type Request_Accept_Call ¶
Request_Accept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Accept'
func (*Request_Accept_Call) Return ¶
func (_c *Request_Accept_Call) Return(_a0 client.Request) *Request_Accept_Call
func (*Request_Accept_Call) Run ¶
func (_c *Request_Accept_Call) Run(run func(contentType string)) *Request_Accept_Call
func (*Request_Accept_Call) RunAndReturn ¶
func (_c *Request_Accept_Call) RunAndReturn(run func(string) client.Request) *Request_Accept_Call
type Request_AsForm_Call ¶
Request_AsForm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsForm'
func (*Request_AsForm_Call) Return ¶
func (_c *Request_AsForm_Call) Return(_a0 client.Request) *Request_AsForm_Call
func (*Request_AsForm_Call) Run ¶
func (_c *Request_AsForm_Call) Run(run func()) *Request_AsForm_Call
func (*Request_AsForm_Call) RunAndReturn ¶
func (_c *Request_AsForm_Call) RunAndReturn(run func() client.Request) *Request_AsForm_Call
type Request_Bind_Call ¶
Request_Bind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Bind'
func (*Request_Bind_Call) Return ¶
func (_c *Request_Bind_Call) Return(_a0 client.Request) *Request_Bind_Call
func (*Request_Bind_Call) Run ¶
func (_c *Request_Bind_Call) Run(run func(value interface{})) *Request_Bind_Call
func (*Request_Bind_Call) RunAndReturn ¶
func (_c *Request_Bind_Call) RunAndReturn(run func(interface{}) client.Request) *Request_Bind_Call
type Request_Clone_Call ¶
Request_Clone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clone'
func (*Request_Clone_Call) Return ¶
func (_c *Request_Clone_Call) Return(_a0 client.Request) *Request_Clone_Call
func (*Request_Clone_Call) Run ¶
func (_c *Request_Clone_Call) Run(run func()) *Request_Clone_Call
func (*Request_Clone_Call) RunAndReturn ¶
func (_c *Request_Clone_Call) RunAndReturn(run func() client.Request) *Request_Clone_Call
type Request_Delete_Call ¶
Request_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Request_Delete_Call) Return ¶
func (_c *Request_Delete_Call) Return(_a0 client.Response, _a1 error) *Request_Delete_Call
func (*Request_Delete_Call) Run ¶
func (_c *Request_Delete_Call) Run(run func(uri string, body io.Reader)) *Request_Delete_Call
func (*Request_Delete_Call) RunAndReturn ¶
func (_c *Request_Delete_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Request_Delete_Call
type Request_Expecter ¶
type Request_Expecter struct {
// contains filtered or unexported fields
}
func (*Request_Expecter) Accept ¶
func (_e *Request_Expecter) Accept(contentType interface{}) *Request_Accept_Call
Accept is a helper method to define mock.On call
- contentType string
func (*Request_Expecter) AcceptJSON ¶
func (_e *Request_Expecter) AcceptJSON() *Request_AcceptJSON_Call
AcceptJSON is a helper method to define mock.On call
func (*Request_Expecter) AsForm ¶
func (_e *Request_Expecter) AsForm() *Request_AsForm_Call
AsForm is a helper method to define mock.On call
func (*Request_Expecter) Bind ¶
func (_e *Request_Expecter) Bind(value interface{}) *Request_Bind_Call
Bind is a helper method to define mock.On call
- value interface{}
func (*Request_Expecter) Clone ¶
func (_e *Request_Expecter) Clone() *Request_Clone_Call
Clone is a helper method to define mock.On call
func (*Request_Expecter) Delete ¶
func (_e *Request_Expecter) Delete(uri interface{}, body interface{}) *Request_Delete_Call
Delete is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Request_Expecter) FlushHeaders ¶
func (_e *Request_Expecter) FlushHeaders() *Request_FlushHeaders_Call
FlushHeaders is a helper method to define mock.On call
func (*Request_Expecter) Get ¶
func (_e *Request_Expecter) Get(uri interface{}) *Request_Get_Call
Get is a helper method to define mock.On call
- uri string
func (*Request_Expecter) Head ¶
func (_e *Request_Expecter) Head(uri interface{}) *Request_Head_Call
Head is a helper method to define mock.On call
- uri string
func (*Request_Expecter) Options ¶
func (_e *Request_Expecter) Options(uri interface{}) *Request_Options_Call
Options is a helper method to define mock.On call
- uri string
func (*Request_Expecter) Patch ¶
func (_e *Request_Expecter) Patch(uri interface{}, body interface{}) *Request_Patch_Call
Patch is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Request_Expecter) Post ¶
func (_e *Request_Expecter) Post(uri interface{}, body interface{}) *Request_Post_Call
Post is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Request_Expecter) Put ¶
func (_e *Request_Expecter) Put(uri interface{}, body interface{}) *Request_Put_Call
Put is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Request_Expecter) ReplaceHeaders ¶
func (_e *Request_Expecter) ReplaceHeaders(headers interface{}) *Request_ReplaceHeaders_Call
ReplaceHeaders is a helper method to define mock.On call
- headers map[string]string
func (*Request_Expecter) WithBasicAuth ¶
func (_e *Request_Expecter) WithBasicAuth(username interface{}, password interface{}) *Request_WithBasicAuth_Call
WithBasicAuth is a helper method to define mock.On call
- username string
- password string
func (*Request_Expecter) WithContext ¶
func (_e *Request_Expecter) WithContext(ctx interface{}) *Request_WithContext_Call
WithContext is a helper method to define mock.On call
- ctx context.Context
func (*Request_Expecter) WithCookie ¶
func (_e *Request_Expecter) WithCookie(cookie interface{}) *Request_WithCookie_Call
WithCookie is a helper method to define mock.On call
- cookie *http.Cookie
func (*Request_Expecter) WithCookies ¶
func (_e *Request_Expecter) WithCookies(cookies interface{}) *Request_WithCookies_Call
WithCookies is a helper method to define mock.On call
- cookies []*http.Cookie
func (*Request_Expecter) WithHeader ¶
func (_e *Request_Expecter) WithHeader(key interface{}, value interface{}) *Request_WithHeader_Call
WithHeader is a helper method to define mock.On call
- key string
- value string
func (*Request_Expecter) WithHeaders ¶
func (_e *Request_Expecter) WithHeaders(_a0 interface{}) *Request_WithHeaders_Call
WithHeaders is a helper method to define mock.On call
- _a0 map[string]string
func (*Request_Expecter) WithQueryParameter ¶
func (_e *Request_Expecter) WithQueryParameter(key interface{}, value interface{}) *Request_WithQueryParameter_Call
WithQueryParameter is a helper method to define mock.On call
- key string
- value string
func (*Request_Expecter) WithQueryParameters ¶
func (_e *Request_Expecter) WithQueryParameters(_a0 interface{}) *Request_WithQueryParameters_Call
WithQueryParameters is a helper method to define mock.On call
- _a0 map[string]string
func (*Request_Expecter) WithQueryString ¶
func (_e *Request_Expecter) WithQueryString(query interface{}) *Request_WithQueryString_Call
WithQueryString is a helper method to define mock.On call
- query string
func (*Request_Expecter) WithToken ¶
func (_e *Request_Expecter) WithToken(token interface{}, ttype ...interface{}) *Request_WithToken_Call
WithToken is a helper method to define mock.On call
- token string
- ttype ...string
func (*Request_Expecter) WithUrlParameter ¶
func (_e *Request_Expecter) WithUrlParameter(key interface{}, value interface{}) *Request_WithUrlParameter_Call
WithUrlParameter is a helper method to define mock.On call
- key string
- value string
func (*Request_Expecter) WithUrlParameters ¶
func (_e *Request_Expecter) WithUrlParameters(_a0 interface{}) *Request_WithUrlParameters_Call
WithUrlParameters is a helper method to define mock.On call
- _a0 map[string]string
func (*Request_Expecter) WithoutHeader ¶
func (_e *Request_Expecter) WithoutHeader(key interface{}) *Request_WithoutHeader_Call
WithoutHeader is a helper method to define mock.On call
- key string
func (*Request_Expecter) WithoutToken ¶
func (_e *Request_Expecter) WithoutToken() *Request_WithoutToken_Call
WithoutToken is a helper method to define mock.On call
type Request_FlushHeaders_Call ¶
Request_FlushHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlushHeaders'
func (*Request_FlushHeaders_Call) Return ¶
func (_c *Request_FlushHeaders_Call) Return(_a0 client.Request) *Request_FlushHeaders_Call
func (*Request_FlushHeaders_Call) Run ¶
func (_c *Request_FlushHeaders_Call) Run(run func()) *Request_FlushHeaders_Call
func (*Request_FlushHeaders_Call) RunAndReturn ¶
func (_c *Request_FlushHeaders_Call) RunAndReturn(run func() client.Request) *Request_FlushHeaders_Call
type Request_Get_Call ¶
Request_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Request_Get_Call) Return ¶
func (_c *Request_Get_Call) Return(_a0 client.Response, _a1 error) *Request_Get_Call
func (*Request_Get_Call) Run ¶
func (_c *Request_Get_Call) Run(run func(uri string)) *Request_Get_Call
func (*Request_Get_Call) RunAndReturn ¶
func (_c *Request_Get_Call) RunAndReturn(run func(string) (client.Response, error)) *Request_Get_Call
type Request_Head_Call ¶
Request_Head_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Head'
func (*Request_Head_Call) Return ¶
func (_c *Request_Head_Call) Return(_a0 client.Response, _a1 error) *Request_Head_Call
func (*Request_Head_Call) Run ¶
func (_c *Request_Head_Call) Run(run func(uri string)) *Request_Head_Call
func (*Request_Head_Call) RunAndReturn ¶
func (_c *Request_Head_Call) RunAndReturn(run func(string) (client.Response, error)) *Request_Head_Call
type Request_Options_Call ¶
Request_Options_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Options'
func (*Request_Options_Call) Return ¶
func (_c *Request_Options_Call) Return(_a0 client.Response, _a1 error) *Request_Options_Call
func (*Request_Options_Call) Run ¶
func (_c *Request_Options_Call) Run(run func(uri string)) *Request_Options_Call
func (*Request_Options_Call) RunAndReturn ¶
func (_c *Request_Options_Call) RunAndReturn(run func(string) (client.Response, error)) *Request_Options_Call
type Request_Patch_Call ¶
Request_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*Request_Patch_Call) Return ¶
func (_c *Request_Patch_Call) Return(_a0 client.Response, _a1 error) *Request_Patch_Call
func (*Request_Patch_Call) Run ¶
func (_c *Request_Patch_Call) Run(run func(uri string, body io.Reader)) *Request_Patch_Call
func (*Request_Patch_Call) RunAndReturn ¶
func (_c *Request_Patch_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Request_Patch_Call
type Request_Post_Call ¶
Request_Post_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Post'
func (*Request_Post_Call) Return ¶
func (_c *Request_Post_Call) Return(_a0 client.Response, _a1 error) *Request_Post_Call
func (*Request_Post_Call) Run ¶
func (_c *Request_Post_Call) Run(run func(uri string, body io.Reader)) *Request_Post_Call
func (*Request_Post_Call) RunAndReturn ¶
func (_c *Request_Post_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Request_Post_Call
type Request_Put_Call ¶
Request_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*Request_Put_Call) Return ¶
func (_c *Request_Put_Call) Return(_a0 client.Response, _a1 error) *Request_Put_Call
func (*Request_Put_Call) Run ¶
func (_c *Request_Put_Call) Run(run func(uri string, body io.Reader)) *Request_Put_Call
func (*Request_Put_Call) RunAndReturn ¶
func (_c *Request_Put_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Request_Put_Call
type Request_ReplaceHeaders_Call ¶
Request_ReplaceHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplaceHeaders'
func (*Request_ReplaceHeaders_Call) Return ¶
func (_c *Request_ReplaceHeaders_Call) Return(_a0 client.Request) *Request_ReplaceHeaders_Call
func (*Request_ReplaceHeaders_Call) Run ¶
func (_c *Request_ReplaceHeaders_Call) Run(run func(headers map[string]string)) *Request_ReplaceHeaders_Call
func (*Request_ReplaceHeaders_Call) RunAndReturn ¶
func (_c *Request_ReplaceHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_ReplaceHeaders_Call
type Request_WithBasicAuth_Call ¶
Request_WithBasicAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithBasicAuth'
func (*Request_WithBasicAuth_Call) Return ¶
func (_c *Request_WithBasicAuth_Call) Return(_a0 client.Request) *Request_WithBasicAuth_Call
func (*Request_WithBasicAuth_Call) Run ¶
func (_c *Request_WithBasicAuth_Call) Run(run func(username string, password string)) *Request_WithBasicAuth_Call
func (*Request_WithBasicAuth_Call) RunAndReturn ¶
func (_c *Request_WithBasicAuth_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithBasicAuth_Call
type Request_WithContext_Call ¶
Request_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'
func (*Request_WithContext_Call) Return ¶
func (_c *Request_WithContext_Call) Return(_a0 client.Request) *Request_WithContext_Call
func (*Request_WithContext_Call) Run ¶
func (_c *Request_WithContext_Call) Run(run func(ctx context.Context)) *Request_WithContext_Call
func (*Request_WithContext_Call) RunAndReturn ¶
func (_c *Request_WithContext_Call) RunAndReturn(run func(context.Context) client.Request) *Request_WithContext_Call
type Request_WithCookie_Call ¶
Request_WithCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithCookie'
func (*Request_WithCookie_Call) Return ¶
func (_c *Request_WithCookie_Call) Return(_a0 client.Request) *Request_WithCookie_Call
func (*Request_WithCookie_Call) Run ¶
func (_c *Request_WithCookie_Call) Run(run func(cookie *http.Cookie)) *Request_WithCookie_Call
func (*Request_WithCookie_Call) RunAndReturn ¶
func (_c *Request_WithCookie_Call) RunAndReturn(run func(*http.Cookie) client.Request) *Request_WithCookie_Call
type Request_WithCookies_Call ¶
Request_WithCookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithCookies'
func (*Request_WithCookies_Call) Return ¶
func (_c *Request_WithCookies_Call) Return(_a0 client.Request) *Request_WithCookies_Call
func (*Request_WithCookies_Call) Run ¶
func (_c *Request_WithCookies_Call) Run(run func(cookies []*http.Cookie)) *Request_WithCookies_Call
func (*Request_WithCookies_Call) RunAndReturn ¶
func (_c *Request_WithCookies_Call) RunAndReturn(run func([]*http.Cookie) client.Request) *Request_WithCookies_Call
type Request_WithHeader_Call ¶
Request_WithHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithHeader'
func (*Request_WithHeader_Call) Return ¶
func (_c *Request_WithHeader_Call) Return(_a0 client.Request) *Request_WithHeader_Call
func (*Request_WithHeader_Call) Run ¶
func (_c *Request_WithHeader_Call) Run(run func(key string, value string)) *Request_WithHeader_Call
func (*Request_WithHeader_Call) RunAndReturn ¶
func (_c *Request_WithHeader_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithHeader_Call
type Request_WithHeaders_Call ¶
Request_WithHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithHeaders'
func (*Request_WithHeaders_Call) Return ¶
func (_c *Request_WithHeaders_Call) Return(_a0 client.Request) *Request_WithHeaders_Call
func (*Request_WithHeaders_Call) Run ¶
func (_c *Request_WithHeaders_Call) Run(run func(_a0 map[string]string)) *Request_WithHeaders_Call
func (*Request_WithHeaders_Call) RunAndReturn ¶
func (_c *Request_WithHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithHeaders_Call
type Request_WithQueryParameter_Call ¶
Request_WithQueryParameter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryParameter'
func (*Request_WithQueryParameter_Call) Return ¶
func (_c *Request_WithQueryParameter_Call) Return(_a0 client.Request) *Request_WithQueryParameter_Call
func (*Request_WithQueryParameter_Call) Run ¶
func (_c *Request_WithQueryParameter_Call) Run(run func(key string, value string)) *Request_WithQueryParameter_Call
func (*Request_WithQueryParameter_Call) RunAndReturn ¶
func (_c *Request_WithQueryParameter_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithQueryParameter_Call
type Request_WithQueryParameters_Call ¶
Request_WithQueryParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryParameters'
func (*Request_WithQueryParameters_Call) Return ¶
func (_c *Request_WithQueryParameters_Call) Return(_a0 client.Request) *Request_WithQueryParameters_Call
func (*Request_WithQueryParameters_Call) Run ¶
func (_c *Request_WithQueryParameters_Call) Run(run func(_a0 map[string]string)) *Request_WithQueryParameters_Call
func (*Request_WithQueryParameters_Call) RunAndReturn ¶
func (_c *Request_WithQueryParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithQueryParameters_Call
type Request_WithQueryString_Call ¶
Request_WithQueryString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryString'
func (*Request_WithQueryString_Call) Return ¶
func (_c *Request_WithQueryString_Call) Return(_a0 client.Request) *Request_WithQueryString_Call
func (*Request_WithQueryString_Call) Run ¶
func (_c *Request_WithQueryString_Call) Run(run func(query string)) *Request_WithQueryString_Call
func (*Request_WithQueryString_Call) RunAndReturn ¶
func (_c *Request_WithQueryString_Call) RunAndReturn(run func(string) client.Request) *Request_WithQueryString_Call
type Request_WithToken_Call ¶
Request_WithToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithToken'
func (*Request_WithToken_Call) Return ¶
func (_c *Request_WithToken_Call) Return(_a0 client.Request) *Request_WithToken_Call
func (*Request_WithToken_Call) Run ¶
func (_c *Request_WithToken_Call) Run(run func(token string, ttype ...string)) *Request_WithToken_Call
func (*Request_WithToken_Call) RunAndReturn ¶
func (_c *Request_WithToken_Call) RunAndReturn(run func(string, ...string) client.Request) *Request_WithToken_Call
type Request_WithUrlParameter_Call ¶
Request_WithUrlParameter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithUrlParameter'
func (*Request_WithUrlParameter_Call) Return ¶
func (_c *Request_WithUrlParameter_Call) Return(_a0 client.Request) *Request_WithUrlParameter_Call
func (*Request_WithUrlParameter_Call) Run ¶
func (_c *Request_WithUrlParameter_Call) Run(run func(key string, value string)) *Request_WithUrlParameter_Call
func (*Request_WithUrlParameter_Call) RunAndReturn ¶
func (_c *Request_WithUrlParameter_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithUrlParameter_Call
type Request_WithUrlParameters_Call ¶
Request_WithUrlParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithUrlParameters'
func (*Request_WithUrlParameters_Call) Return ¶
func (_c *Request_WithUrlParameters_Call) Return(_a0 client.Request) *Request_WithUrlParameters_Call
func (*Request_WithUrlParameters_Call) Run ¶
func (_c *Request_WithUrlParameters_Call) Run(run func(_a0 map[string]string)) *Request_WithUrlParameters_Call
func (*Request_WithUrlParameters_Call) RunAndReturn ¶
func (_c *Request_WithUrlParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithUrlParameters_Call
type Request_WithoutHeader_Call ¶
Request_WithoutHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithoutHeader'
func (*Request_WithoutHeader_Call) Return ¶
func (_c *Request_WithoutHeader_Call) Return(_a0 client.Request) *Request_WithoutHeader_Call
func (*Request_WithoutHeader_Call) Run ¶
func (_c *Request_WithoutHeader_Call) Run(run func(key string)) *Request_WithoutHeader_Call
func (*Request_WithoutHeader_Call) RunAndReturn ¶
func (_c *Request_WithoutHeader_Call) RunAndReturn(run func(string) client.Request) *Request_WithoutHeader_Call
type Request_WithoutToken_Call ¶
Request_WithoutToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithoutToken'
func (*Request_WithoutToken_Call) Return ¶
func (_c *Request_WithoutToken_Call) Return(_a0 client.Request) *Request_WithoutToken_Call
func (*Request_WithoutToken_Call) Run ¶
func (_c *Request_WithoutToken_Call) Run(run func()) *Request_WithoutToken_Call
func (*Request_WithoutToken_Call) RunAndReturn ¶
func (_c *Request_WithoutToken_Call) RunAndReturn(run func() client.Request) *Request_WithoutToken_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) BadRequest ¶
BadRequest provides a mock function with no fields
func (*Response) ClientError ¶
ClientError provides a mock function with no fields
func (*Response) EXPECT ¶
func (_m *Response) EXPECT() *Response_Expecter
func (*Response) MovedPermanently ¶
MovedPermanently provides a mock function with no fields
func (*Response) PaymentRequired ¶
PaymentRequired provides a mock function with no fields
func (*Response) RequestTimeout ¶
RequestTimeout provides a mock function with no fields
func (*Response) ServerError ¶
ServerError provides a mock function with no fields
func (*Response) Successful ¶
Successful provides a mock function with no fields
func (*Response) TooManyRequests ¶
TooManyRequests provides a mock function with no fields
func (*Response) Unauthorized ¶
Unauthorized provides a mock function with no fields
func (*Response) UnprocessableEntity ¶
UnprocessableEntity provides a mock function with no fields
type Response_Accepted_Call ¶
Response_Accepted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Accepted'
func (*Response_Accepted_Call) Return ¶
func (_c *Response_Accepted_Call) Return(_a0 bool) *Response_Accepted_Call
func (*Response_Accepted_Call) Run ¶
func (_c *Response_Accepted_Call) Run(run func()) *Response_Accepted_Call
func (*Response_Accepted_Call) RunAndReturn ¶
func (_c *Response_Accepted_Call) RunAndReturn(run func() bool) *Response_Accepted_Call
type Response_BadRequest_Call ¶
Response_BadRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BadRequest'
func (*Response_BadRequest_Call) Return ¶
func (_c *Response_BadRequest_Call) Return(_a0 bool) *Response_BadRequest_Call
func (*Response_BadRequest_Call) Run ¶
func (_c *Response_BadRequest_Call) Run(run func()) *Response_BadRequest_Call
func (*Response_BadRequest_Call) RunAndReturn ¶
func (_c *Response_BadRequest_Call) RunAndReturn(run func() bool) *Response_BadRequest_Call
type Response_Body_Call ¶
Response_Body_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Body'
func (*Response_Body_Call) Return ¶
func (_c *Response_Body_Call) Return(_a0 string, _a1 error) *Response_Body_Call
func (*Response_Body_Call) Run ¶
func (_c *Response_Body_Call) Run(run func()) *Response_Body_Call
func (*Response_Body_Call) RunAndReturn ¶
func (_c *Response_Body_Call) RunAndReturn(run func() (string, error)) *Response_Body_Call
type Response_ClientError_Call ¶
Response_ClientError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClientError'
func (*Response_ClientError_Call) Return ¶
func (_c *Response_ClientError_Call) Return(_a0 bool) *Response_ClientError_Call
func (*Response_ClientError_Call) Run ¶
func (_c *Response_ClientError_Call) Run(run func()) *Response_ClientError_Call
func (*Response_ClientError_Call) RunAndReturn ¶
func (_c *Response_ClientError_Call) RunAndReturn(run func() bool) *Response_ClientError_Call
type Response_Conflict_Call ¶
Response_Conflict_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Conflict'
func (*Response_Conflict_Call) Return ¶
func (_c *Response_Conflict_Call) Return(_a0 bool) *Response_Conflict_Call
func (*Response_Conflict_Call) Run ¶
func (_c *Response_Conflict_Call) Run(run func()) *Response_Conflict_Call
func (*Response_Conflict_Call) RunAndReturn ¶
func (_c *Response_Conflict_Call) RunAndReturn(run func() bool) *Response_Conflict_Call
type Response_Cookie_Call ¶
Response_Cookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookie'
func (*Response_Cookie_Call) Return ¶
func (_c *Response_Cookie_Call) Return(_a0 *http.Cookie) *Response_Cookie_Call
func (*Response_Cookie_Call) Run ¶
func (_c *Response_Cookie_Call) Run(run func(name string)) *Response_Cookie_Call
func (*Response_Cookie_Call) RunAndReturn ¶
func (_c *Response_Cookie_Call) RunAndReturn(run func(string) *http.Cookie) *Response_Cookie_Call
type Response_Cookies_Call ¶
Response_Cookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookies'
func (*Response_Cookies_Call) Return ¶
func (_c *Response_Cookies_Call) Return(_a0 []*http.Cookie) *Response_Cookies_Call
func (*Response_Cookies_Call) Run ¶
func (_c *Response_Cookies_Call) Run(run func()) *Response_Cookies_Call
func (*Response_Cookies_Call) RunAndReturn ¶
func (_c *Response_Cookies_Call) RunAndReturn(run func() []*http.Cookie) *Response_Cookies_Call
type Response_Created_Call ¶
Response_Created_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Created'
func (*Response_Created_Call) Return ¶
func (_c *Response_Created_Call) Return(_a0 bool) *Response_Created_Call
func (*Response_Created_Call) Run ¶
func (_c *Response_Created_Call) Run(run func()) *Response_Created_Call
func (*Response_Created_Call) RunAndReturn ¶
func (_c *Response_Created_Call) RunAndReturn(run func() bool) *Response_Created_Call
type Response_Expecter ¶
type Response_Expecter struct {
// contains filtered or unexported fields
}
func (*Response_Expecter) Accepted ¶
func (_e *Response_Expecter) Accepted() *Response_Accepted_Call
Accepted is a helper method to define mock.On call
func (*Response_Expecter) BadRequest ¶
func (_e *Response_Expecter) BadRequest() *Response_BadRequest_Call
BadRequest is a helper method to define mock.On call
func (*Response_Expecter) Body ¶
func (_e *Response_Expecter) Body() *Response_Body_Call
Body is a helper method to define mock.On call
func (*Response_Expecter) ClientError ¶
func (_e *Response_Expecter) ClientError() *Response_ClientError_Call
ClientError is a helper method to define mock.On call
func (*Response_Expecter) Conflict ¶
func (_e *Response_Expecter) Conflict() *Response_Conflict_Call
Conflict is a helper method to define mock.On call
func (*Response_Expecter) Cookie ¶
func (_e *Response_Expecter) Cookie(name interface{}) *Response_Cookie_Call
Cookie is a helper method to define mock.On call
- name string
func (*Response_Expecter) Cookies ¶
func (_e *Response_Expecter) Cookies() *Response_Cookies_Call
Cookies is a helper method to define mock.On call
func (*Response_Expecter) Created ¶
func (_e *Response_Expecter) Created() *Response_Created_Call
Created is a helper method to define mock.On call
func (*Response_Expecter) Failed ¶
func (_e *Response_Expecter) Failed() *Response_Failed_Call
Failed is a helper method to define mock.On call
func (*Response_Expecter) Forbidden ¶
func (_e *Response_Expecter) Forbidden() *Response_Forbidden_Call
Forbidden is a helper method to define mock.On call
func (*Response_Expecter) Found ¶
func (_e *Response_Expecter) Found() *Response_Found_Call
Found is a helper method to define mock.On call
func (*Response_Expecter) Header ¶
func (_e *Response_Expecter) Header(name interface{}) *Response_Header_Call
Header is a helper method to define mock.On call
- name string
func (*Response_Expecter) Headers ¶
func (_e *Response_Expecter) Headers() *Response_Headers_Call
Headers is a helper method to define mock.On call
func (*Response_Expecter) Json ¶
func (_e *Response_Expecter) Json() *Response_Json_Call
Json is a helper method to define mock.On call
func (*Response_Expecter) MovedPermanently ¶
func (_e *Response_Expecter) MovedPermanently() *Response_MovedPermanently_Call
MovedPermanently is a helper method to define mock.On call
func (*Response_Expecter) NoContent ¶
func (_e *Response_Expecter) NoContent() *Response_NoContent_Call
NoContent is a helper method to define mock.On call
func (*Response_Expecter) NotFound ¶
func (_e *Response_Expecter) NotFound() *Response_NotFound_Call
NotFound is a helper method to define mock.On call
func (*Response_Expecter) OK ¶
func (_e *Response_Expecter) OK() *Response_OK_Call
OK is a helper method to define mock.On call
func (*Response_Expecter) PaymentRequired ¶
func (_e *Response_Expecter) PaymentRequired() *Response_PaymentRequired_Call
PaymentRequired is a helper method to define mock.On call
func (*Response_Expecter) Redirect ¶
func (_e *Response_Expecter) Redirect() *Response_Redirect_Call
Redirect is a helper method to define mock.On call
func (*Response_Expecter) RequestTimeout ¶
func (_e *Response_Expecter) RequestTimeout() *Response_RequestTimeout_Call
RequestTimeout is a helper method to define mock.On call
func (*Response_Expecter) ServerError ¶
func (_e *Response_Expecter) ServerError() *Response_ServerError_Call
ServerError is a helper method to define mock.On call
func (*Response_Expecter) Status ¶
func (_e *Response_Expecter) Status() *Response_Status_Call
Status is a helper method to define mock.On call
func (*Response_Expecter) Successful ¶
func (_e *Response_Expecter) Successful() *Response_Successful_Call
Successful is a helper method to define mock.On call
func (*Response_Expecter) TooManyRequests ¶
func (_e *Response_Expecter) TooManyRequests() *Response_TooManyRequests_Call
TooManyRequests is a helper method to define mock.On call
func (*Response_Expecter) Unauthorized ¶
func (_e *Response_Expecter) Unauthorized() *Response_Unauthorized_Call
Unauthorized is a helper method to define mock.On call
func (*Response_Expecter) UnprocessableEntity ¶
func (_e *Response_Expecter) UnprocessableEntity() *Response_UnprocessableEntity_Call
UnprocessableEntity is a helper method to define mock.On call
type Response_Failed_Call ¶
Response_Failed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Failed'
func (*Response_Failed_Call) Return ¶
func (_c *Response_Failed_Call) Return(_a0 bool) *Response_Failed_Call
func (*Response_Failed_Call) Run ¶
func (_c *Response_Failed_Call) Run(run func()) *Response_Failed_Call
func (*Response_Failed_Call) RunAndReturn ¶
func (_c *Response_Failed_Call) RunAndReturn(run func() bool) *Response_Failed_Call
type Response_Forbidden_Call ¶
Response_Forbidden_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Forbidden'
func (*Response_Forbidden_Call) Return ¶
func (_c *Response_Forbidden_Call) Return(_a0 bool) *Response_Forbidden_Call
func (*Response_Forbidden_Call) Run ¶
func (_c *Response_Forbidden_Call) Run(run func()) *Response_Forbidden_Call
func (*Response_Forbidden_Call) RunAndReturn ¶
func (_c *Response_Forbidden_Call) RunAndReturn(run func() bool) *Response_Forbidden_Call
type Response_Found_Call ¶
Response_Found_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Found'
func (*Response_Found_Call) Return ¶
func (_c *Response_Found_Call) Return(_a0 bool) *Response_Found_Call
func (*Response_Found_Call) Run ¶
func (_c *Response_Found_Call) Run(run func()) *Response_Found_Call
func (*Response_Found_Call) RunAndReturn ¶
func (_c *Response_Found_Call) RunAndReturn(run func() bool) *Response_Found_Call
type Response_Header_Call ¶
Response_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*Response_Header_Call) Return ¶
func (_c *Response_Header_Call) Return(_a0 string) *Response_Header_Call
func (*Response_Header_Call) Run ¶
func (_c *Response_Header_Call) Run(run func(name string)) *Response_Header_Call
func (*Response_Header_Call) RunAndReturn ¶
func (_c *Response_Header_Call) RunAndReturn(run func(string) string) *Response_Header_Call
type Response_Headers_Call ¶
Response_Headers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Headers'
func (*Response_Headers_Call) Return ¶
func (_c *Response_Headers_Call) Return(_a0 http.Header) *Response_Headers_Call
func (*Response_Headers_Call) Run ¶
func (_c *Response_Headers_Call) Run(run func()) *Response_Headers_Call
func (*Response_Headers_Call) RunAndReturn ¶
func (_c *Response_Headers_Call) RunAndReturn(run func() http.Header) *Response_Headers_Call
type Response_Json_Call ¶
Response_Json_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Json'
func (*Response_Json_Call) Return ¶
func (_c *Response_Json_Call) Return(_a0 map[string]interface{}, _a1 error) *Response_Json_Call
func (*Response_Json_Call) Run ¶
func (_c *Response_Json_Call) Run(run func()) *Response_Json_Call
func (*Response_Json_Call) RunAndReturn ¶
func (_c *Response_Json_Call) RunAndReturn(run func() (map[string]interface{}, error)) *Response_Json_Call
type Response_MovedPermanently_Call ¶
Response_MovedPermanently_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MovedPermanently'
func (*Response_MovedPermanently_Call) Return ¶
func (_c *Response_MovedPermanently_Call) Return(_a0 bool) *Response_MovedPermanently_Call
func (*Response_MovedPermanently_Call) Run ¶
func (_c *Response_MovedPermanently_Call) Run(run func()) *Response_MovedPermanently_Call
func (*Response_MovedPermanently_Call) RunAndReturn ¶
func (_c *Response_MovedPermanently_Call) RunAndReturn(run func() bool) *Response_MovedPermanently_Call
type Response_NoContent_Call ¶
Response_NoContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NoContent'
func (*Response_NoContent_Call) Return ¶
func (_c *Response_NoContent_Call) Return(_a0 bool) *Response_NoContent_Call
func (*Response_NoContent_Call) Run ¶
func (_c *Response_NoContent_Call) Run(run func()) *Response_NoContent_Call
func (*Response_NoContent_Call) RunAndReturn ¶
func (_c *Response_NoContent_Call) RunAndReturn(run func() bool) *Response_NoContent_Call
type Response_NotFound_Call ¶
Response_NotFound_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NotFound'
func (*Response_NotFound_Call) Return ¶
func (_c *Response_NotFound_Call) Return(_a0 bool) *Response_NotFound_Call
func (*Response_NotFound_Call) Run ¶
func (_c *Response_NotFound_Call) Run(run func()) *Response_NotFound_Call
func (*Response_NotFound_Call) RunAndReturn ¶
func (_c *Response_NotFound_Call) RunAndReturn(run func() bool) *Response_NotFound_Call
type Response_OK_Call ¶
Response_OK_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OK'
func (*Response_OK_Call) Return ¶
func (_c *Response_OK_Call) Return(_a0 bool) *Response_OK_Call
func (*Response_OK_Call) Run ¶
func (_c *Response_OK_Call) Run(run func()) *Response_OK_Call
func (*Response_OK_Call) RunAndReturn ¶
func (_c *Response_OK_Call) RunAndReturn(run func() bool) *Response_OK_Call
type Response_PaymentRequired_Call ¶
Response_PaymentRequired_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PaymentRequired'
func (*Response_PaymentRequired_Call) Return ¶
func (_c *Response_PaymentRequired_Call) Return(_a0 bool) *Response_PaymentRequired_Call
func (*Response_PaymentRequired_Call) Run ¶
func (_c *Response_PaymentRequired_Call) Run(run func()) *Response_PaymentRequired_Call
func (*Response_PaymentRequired_Call) RunAndReturn ¶
func (_c *Response_PaymentRequired_Call) RunAndReturn(run func() bool) *Response_PaymentRequired_Call
type Response_Redirect_Call ¶
Response_Redirect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Redirect'
func (*Response_Redirect_Call) Return ¶
func (_c *Response_Redirect_Call) Return(_a0 bool) *Response_Redirect_Call
func (*Response_Redirect_Call) Run ¶
func (_c *Response_Redirect_Call) Run(run func()) *Response_Redirect_Call
func (*Response_Redirect_Call) RunAndReturn ¶
func (_c *Response_Redirect_Call) RunAndReturn(run func() bool) *Response_Redirect_Call
type Response_RequestTimeout_Call ¶
Response_RequestTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestTimeout'
func (*Response_RequestTimeout_Call) Return ¶
func (_c *Response_RequestTimeout_Call) Return(_a0 bool) *Response_RequestTimeout_Call
func (*Response_RequestTimeout_Call) Run ¶
func (_c *Response_RequestTimeout_Call) Run(run func()) *Response_RequestTimeout_Call
func (*Response_RequestTimeout_Call) RunAndReturn ¶
func (_c *Response_RequestTimeout_Call) RunAndReturn(run func() bool) *Response_RequestTimeout_Call
type Response_ServerError_Call ¶
Response_ServerError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerError'
func (*Response_ServerError_Call) Return ¶
func (_c *Response_ServerError_Call) Return(_a0 bool) *Response_ServerError_Call
func (*Response_ServerError_Call) Run ¶
func (_c *Response_ServerError_Call) Run(run func()) *Response_ServerError_Call
func (*Response_ServerError_Call) RunAndReturn ¶
func (_c *Response_ServerError_Call) RunAndReturn(run func() bool) *Response_ServerError_Call
type Response_Status_Call ¶
Response_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*Response_Status_Call) Return ¶
func (_c *Response_Status_Call) Return(_a0 int) *Response_Status_Call
func (*Response_Status_Call) Run ¶
func (_c *Response_Status_Call) Run(run func()) *Response_Status_Call
func (*Response_Status_Call) RunAndReturn ¶
func (_c *Response_Status_Call) RunAndReturn(run func() int) *Response_Status_Call
type Response_Successful_Call ¶
Response_Successful_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Successful'
func (*Response_Successful_Call) Return ¶
func (_c *Response_Successful_Call) Return(_a0 bool) *Response_Successful_Call
func (*Response_Successful_Call) Run ¶
func (_c *Response_Successful_Call) Run(run func()) *Response_Successful_Call
func (*Response_Successful_Call) RunAndReturn ¶
func (_c *Response_Successful_Call) RunAndReturn(run func() bool) *Response_Successful_Call
type Response_TooManyRequests_Call ¶
Response_TooManyRequests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TooManyRequests'
func (*Response_TooManyRequests_Call) Return ¶
func (_c *Response_TooManyRequests_Call) Return(_a0 bool) *Response_TooManyRequests_Call
func (*Response_TooManyRequests_Call) Run ¶
func (_c *Response_TooManyRequests_Call) Run(run func()) *Response_TooManyRequests_Call
func (*Response_TooManyRequests_Call) RunAndReturn ¶
func (_c *Response_TooManyRequests_Call) RunAndReturn(run func() bool) *Response_TooManyRequests_Call
type Response_Unauthorized_Call ¶
type Response_Unauthorized_Call struct {
}
Response_Unauthorized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unauthorized'
func (*Response_Unauthorized_Call) Return ¶
func (_c *Response_Unauthorized_Call) Return(_a0 bool) *Response_Unauthorized_Call
func (*Response_Unauthorized_Call) Run ¶
func (_c *Response_Unauthorized_Call) Run(run func()) *Response_Unauthorized_Call
func (*Response_Unauthorized_Call) RunAndReturn ¶
func (_c *Response_Unauthorized_Call) RunAndReturn(run func() bool) *Response_Unauthorized_Call
type Response_UnprocessableEntity_Call ¶
Response_UnprocessableEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnprocessableEntity'
func (*Response_UnprocessableEntity_Call) Return ¶
func (_c *Response_UnprocessableEntity_Call) Return(_a0 bool) *Response_UnprocessableEntity_Call
func (*Response_UnprocessableEntity_Call) Run ¶
func (_c *Response_UnprocessableEntity_Call) Run(run func()) *Response_UnprocessableEntity_Call
func (*Response_UnprocessableEntity_Call) RunAndReturn ¶
func (_c *Response_UnprocessableEntity_Call) RunAndReturn(run func() bool) *Response_UnprocessableEntity_Call