client

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory added in v1.17.0

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory added in v1.17.0

func NewFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *Factory

NewFactory creates a new instance of Factory. 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 (*Factory) Accept added in v1.17.0

func (_m *Factory) Accept(contentType string) client.Request

Accept provides a mock function with given fields: contentType

func (*Factory) AcceptJSON added in v1.17.0

func (_m *Factory) AcceptJSON() client.Request

AcceptJSON provides a mock function with no fields

func (*Factory) AllowStrayRequests added in v1.17.0

func (_m *Factory) AllowStrayRequests(patterns []string) client.Factory

AllowStrayRequests provides a mock function with given fields: patterns

func (*Factory) AsForm added in v1.17.0

func (_m *Factory) AsForm() client.Request

AsForm provides a mock function with no fields

func (*Factory) AssertNotSent added in v1.17.0

func (_m *Factory) AssertNotSent(assertion func(client.Request) bool) bool

AssertNotSent provides a mock function with given fields: assertion

func (*Factory) AssertNothingSent added in v1.17.0

func (_m *Factory) AssertNothingSent() bool

AssertNothingSent provides a mock function with no fields

func (*Factory) AssertSent added in v1.17.0

func (_m *Factory) AssertSent(assertion func(client.Request) bool) bool

AssertSent provides a mock function with given fields: assertion

func (*Factory) AssertSentCount added in v1.17.0

func (_m *Factory) AssertSentCount(count int) bool

AssertSentCount provides a mock function with given fields: count

func (*Factory) BaseUrl added in v1.17.0

func (_m *Factory) BaseUrl(url string) client.Request

BaseUrl provides a mock function with given fields: url

func (*Factory) Body added in v1.17.0

func (_m *Factory) Body() string

Body provides a mock function with no fields

func (*Factory) Client added in v1.17.0

func (_m *Factory) Client(name ...string) client.Request

Client provides a mock function with given fields: name

func (*Factory) ClientName added in v1.17.0

func (_m *Factory) ClientName() string

ClientName provides a mock function with no fields

func (*Factory) Clone added in v1.17.0

func (_m *Factory) Clone() client.Request

Clone provides a mock function with no fields

func (*Factory) Delete added in v1.17.0

func (_m *Factory) Delete(uri string, body io.Reader) (client.Response, error)

Delete provides a mock function with given fields: uri, body

func (*Factory) EXPECT added in v1.17.0

func (_m *Factory) EXPECT() *Factory_Expecter

func (*Factory) Fake added in v1.17.0

func (_m *Factory) Fake(mocks map[string]interface{}) client.Factory

Fake provides a mock function with given fields: mocks

func (*Factory) FlushHeaders added in v1.17.0

func (_m *Factory) FlushHeaders() client.Request

FlushHeaders provides a mock function with no fields

func (*Factory) Get added in v1.17.0

func (_m *Factory) Get(uri string) (client.Response, error)

Get provides a mock function with given fields: uri

func (*Factory) Head added in v1.17.0

func (_m *Factory) Head(uri string) (client.Response, error)

Head provides a mock function with given fields: uri

func (*Factory) Header added in v1.17.0

func (_m *Factory) Header(key string) string

Header provides a mock function with given fields: key

func (*Factory) Headers added in v1.17.0

func (_m *Factory) Headers() http.Header

Headers provides a mock function with no fields

func (*Factory) HttpClient added in v1.17.0

func (_m *Factory) HttpClient() *http.Client

HttpClient provides a mock function with no fields

func (*Factory) Input added in v1.17.0

func (_m *Factory) Input(key string) interface{}

Input provides a mock function with given fields: key

func (*Factory) Method added in v1.17.0

func (_m *Factory) Method() string

Method provides a mock function with no fields

func (*Factory) Options added in v1.17.0

func (_m *Factory) Options(uri string) (client.Response, error)

Options provides a mock function with given fields: uri

func (*Factory) Patch added in v1.17.0

func (_m *Factory) Patch(uri string, body io.Reader) (client.Response, error)

Patch provides a mock function with given fields: uri, body

func (*Factory) Post added in v1.17.0

func (_m *Factory) Post(uri string, body io.Reader) (client.Response, error)

Post provides a mock function with given fields: uri, body

func (*Factory) PreventStrayRequests added in v1.17.0

func (_m *Factory) PreventStrayRequests() client.Factory

PreventStrayRequests provides a mock function with no fields

func (*Factory) Put added in v1.17.0

func (_m *Factory) Put(uri string, body io.Reader) (client.Response, error)

Put provides a mock function with given fields: uri, body

func (*Factory) ReplaceHeaders added in v1.17.0

func (_m *Factory) ReplaceHeaders(headers map[string]string) client.Request

ReplaceHeaders provides a mock function with given fields: headers

func (*Factory) Reset added in v1.17.0

func (_m *Factory) Reset()

Reset provides a mock function with no fields

func (*Factory) Response added in v1.17.0

func (_m *Factory) Response() client.FakeResponse

Response provides a mock function with no fields

func (*Factory) Sequence added in v1.17.0

func (_m *Factory) Sequence() client.FakeSequence

Sequence provides a mock function with no fields

func (*Factory) Url added in v1.17.0

func (_m *Factory) Url() string

Url provides a mock function with no fields

func (*Factory) WithBasicAuth added in v1.17.0

func (_m *Factory) WithBasicAuth(username string, password string) client.Request

WithBasicAuth provides a mock function with given fields: username, password

func (*Factory) WithContext added in v1.17.0

func (_m *Factory) WithContext(ctx context.Context) client.Request

WithContext provides a mock function with given fields: ctx

func (*Factory) WithCookie added in v1.17.0

func (_m *Factory) WithCookie(cookie *http.Cookie) client.Request

WithCookie provides a mock function with given fields: cookie

func (*Factory) WithCookies added in v1.17.0

func (_m *Factory) WithCookies(cookies []*http.Cookie) client.Request

WithCookies provides a mock function with given fields: cookies

func (*Factory) WithHeader added in v1.17.0

func (_m *Factory) WithHeader(key string, value string) client.Request

WithHeader provides a mock function with given fields: key, value

func (*Factory) WithHeaders added in v1.17.0

func (_m *Factory) WithHeaders(headers map[string]string) client.Request

WithHeaders provides a mock function with given fields: headers

func (*Factory) WithQueryParameter added in v1.17.0

func (_m *Factory) WithQueryParameter(key string, value string) client.Request

WithQueryParameter provides a mock function with given fields: key, value

func (*Factory) WithQueryParameters added in v1.17.0

func (_m *Factory) WithQueryParameters(params map[string]string) client.Request

WithQueryParameters provides a mock function with given fields: params

func (*Factory) WithQueryString added in v1.17.0

func (_m *Factory) WithQueryString(query string) client.Request

WithQueryString provides a mock function with given fields: query

func (*Factory) WithToken added in v1.17.0

func (_m *Factory) WithToken(token string, ttype ...string) client.Request

WithToken provides a mock function with given fields: token, ttype

func (*Factory) WithUrlParameter added in v1.17.0

func (_m *Factory) WithUrlParameter(key string, value string) client.Request

WithUrlParameter provides a mock function with given fields: key, value

func (*Factory) WithUrlParameters added in v1.17.0

func (_m *Factory) WithUrlParameters(params map[string]string) client.Request

WithUrlParameters provides a mock function with given fields: params

func (*Factory) WithoutHeader added in v1.17.0

func (_m *Factory) WithoutHeader(key string) client.Request

WithoutHeader provides a mock function with given fields: key

func (*Factory) WithoutToken added in v1.17.0

func (_m *Factory) WithoutToken() client.Request

WithoutToken provides a mock function with no fields

type Factory_AcceptJSON_Call added in v1.17.0

type Factory_AcceptJSON_Call struct {
	*mock.Call
}

Factory_AcceptJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AcceptJSON'

func (*Factory_AcceptJSON_Call) Return added in v1.17.0

func (*Factory_AcceptJSON_Call) Run added in v1.17.0

func (_c *Factory_AcceptJSON_Call) Run(run func()) *Factory_AcceptJSON_Call

func (*Factory_AcceptJSON_Call) RunAndReturn added in v1.17.0

func (_c *Factory_AcceptJSON_Call) RunAndReturn(run func() client.Request) *Factory_AcceptJSON_Call

type Factory_Accept_Call added in v1.17.0

type Factory_Accept_Call struct {
	*mock.Call
}

Factory_Accept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Accept'

func (*Factory_Accept_Call) Return added in v1.17.0

func (*Factory_Accept_Call) Run added in v1.17.0

func (_c *Factory_Accept_Call) Run(run func(contentType string)) *Factory_Accept_Call

func (*Factory_Accept_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Accept_Call) RunAndReturn(run func(string) client.Request) *Factory_Accept_Call

type Factory_AllowStrayRequests_Call added in v1.17.0

type Factory_AllowStrayRequests_Call struct {
	*mock.Call
}

Factory_AllowStrayRequests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowStrayRequests'

func (*Factory_AllowStrayRequests_Call) Return added in v1.17.0

func (*Factory_AllowStrayRequests_Call) Run added in v1.17.0

func (*Factory_AllowStrayRequests_Call) RunAndReturn added in v1.17.0

type Factory_AsForm_Call added in v1.17.0

type Factory_AsForm_Call struct {
	*mock.Call
}

Factory_AsForm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsForm'

func (*Factory_AsForm_Call) Return added in v1.17.0

func (*Factory_AsForm_Call) Run added in v1.17.0

func (_c *Factory_AsForm_Call) Run(run func()) *Factory_AsForm_Call

func (*Factory_AsForm_Call) RunAndReturn added in v1.17.0

func (_c *Factory_AsForm_Call) RunAndReturn(run func() client.Request) *Factory_AsForm_Call

type Factory_AssertNotSent_Call added in v1.17.0

type Factory_AssertNotSent_Call struct {
	*mock.Call
}

Factory_AssertNotSent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssertNotSent'

func (*Factory_AssertNotSent_Call) Return added in v1.17.0

func (*Factory_AssertNotSent_Call) Run added in v1.17.0

func (_c *Factory_AssertNotSent_Call) Run(run func(assertion func(client.Request) bool)) *Factory_AssertNotSent_Call

func (*Factory_AssertNotSent_Call) RunAndReturn added in v1.17.0

func (_c *Factory_AssertNotSent_Call) RunAndReturn(run func(func(client.Request) bool) bool) *Factory_AssertNotSent_Call

type Factory_AssertNothingSent_Call added in v1.17.0

type Factory_AssertNothingSent_Call struct {
	*mock.Call
}

Factory_AssertNothingSent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssertNothingSent'

func (*Factory_AssertNothingSent_Call) Return added in v1.17.0

func (*Factory_AssertNothingSent_Call) Run added in v1.17.0

func (*Factory_AssertNothingSent_Call) RunAndReturn added in v1.17.0

type Factory_AssertSentCount_Call added in v1.17.0

type Factory_AssertSentCount_Call struct {
	*mock.Call
}

Factory_AssertSentCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssertSentCount'

func (*Factory_AssertSentCount_Call) Return added in v1.17.0

func (*Factory_AssertSentCount_Call) Run added in v1.17.0

func (*Factory_AssertSentCount_Call) RunAndReturn added in v1.17.0

type Factory_AssertSent_Call added in v1.17.0

type Factory_AssertSent_Call struct {
	*mock.Call
}

Factory_AssertSent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssertSent'

func (*Factory_AssertSent_Call) Return added in v1.17.0

func (*Factory_AssertSent_Call) Run added in v1.17.0

func (_c *Factory_AssertSent_Call) Run(run func(assertion func(client.Request) bool)) *Factory_AssertSent_Call

func (*Factory_AssertSent_Call) RunAndReturn added in v1.17.0

func (_c *Factory_AssertSent_Call) RunAndReturn(run func(func(client.Request) bool) bool) *Factory_AssertSent_Call

type Factory_BaseUrl_Call added in v1.17.0

type Factory_BaseUrl_Call struct {
	*mock.Call
}

Factory_BaseUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BaseUrl'

func (*Factory_BaseUrl_Call) Return added in v1.17.0

func (*Factory_BaseUrl_Call) Run added in v1.17.0

func (_c *Factory_BaseUrl_Call) Run(run func(url string)) *Factory_BaseUrl_Call

func (*Factory_BaseUrl_Call) RunAndReturn added in v1.17.0

func (_c *Factory_BaseUrl_Call) RunAndReturn(run func(string) client.Request) *Factory_BaseUrl_Call

type Factory_Body_Call added in v1.17.0

type Factory_Body_Call struct {
	*mock.Call
}

Factory_Body_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Body'

func (*Factory_Body_Call) Return added in v1.17.0

func (_c *Factory_Body_Call) Return(_a0 string) *Factory_Body_Call

func (*Factory_Body_Call) Run added in v1.17.0

func (_c *Factory_Body_Call) Run(run func()) *Factory_Body_Call

func (*Factory_Body_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Body_Call) RunAndReturn(run func() string) *Factory_Body_Call

type Factory_ClientName_Call added in v1.17.0

type Factory_ClientName_Call struct {
	*mock.Call
}

Factory_ClientName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClientName'

func (*Factory_ClientName_Call) Return added in v1.17.0

func (*Factory_ClientName_Call) Run added in v1.17.0

func (_c *Factory_ClientName_Call) Run(run func()) *Factory_ClientName_Call

func (*Factory_ClientName_Call) RunAndReturn added in v1.17.0

func (_c *Factory_ClientName_Call) RunAndReturn(run func() string) *Factory_ClientName_Call

type Factory_Client_Call added in v1.17.0

type Factory_Client_Call struct {
	*mock.Call
}

Factory_Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Client'

func (*Factory_Client_Call) Return added in v1.17.0

func (*Factory_Client_Call) Run added in v1.17.0

func (_c *Factory_Client_Call) Run(run func(name ...string)) *Factory_Client_Call

func (*Factory_Client_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Client_Call) RunAndReturn(run func(...string) client.Request) *Factory_Client_Call

type Factory_Clone_Call added in v1.17.0

type Factory_Clone_Call struct {
	*mock.Call
}

Factory_Clone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clone'

func (*Factory_Clone_Call) Return added in v1.17.0

func (*Factory_Clone_Call) Run added in v1.17.0

func (_c *Factory_Clone_Call) Run(run func()) *Factory_Clone_Call

func (*Factory_Clone_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Clone_Call) RunAndReturn(run func() client.Request) *Factory_Clone_Call

type Factory_Delete_Call added in v1.17.0

type Factory_Delete_Call struct {
	*mock.Call
}

Factory_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Factory_Delete_Call) Return added in v1.17.0

func (*Factory_Delete_Call) Run added in v1.17.0

func (_c *Factory_Delete_Call) Run(run func(uri string, body io.Reader)) *Factory_Delete_Call

func (*Factory_Delete_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Delete_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Factory_Delete_Call

type Factory_Expecter added in v1.17.0

type Factory_Expecter struct {
	// contains filtered or unexported fields
}

func (*Factory_Expecter) Accept added in v1.17.0

func (_e *Factory_Expecter) Accept(contentType interface{}) *Factory_Accept_Call

Accept is a helper method to define mock.On call

  • contentType string

func (*Factory_Expecter) AcceptJSON added in v1.17.0

func (_e *Factory_Expecter) AcceptJSON() *Factory_AcceptJSON_Call

AcceptJSON is a helper method to define mock.On call

func (*Factory_Expecter) AllowStrayRequests added in v1.17.0

func (_e *Factory_Expecter) AllowStrayRequests(patterns interface{}) *Factory_AllowStrayRequests_Call

AllowStrayRequests is a helper method to define mock.On call

  • patterns []string

func (*Factory_Expecter) AsForm added in v1.17.0

func (_e *Factory_Expecter) AsForm() *Factory_AsForm_Call

AsForm is a helper method to define mock.On call

func (*Factory_Expecter) AssertNotSent added in v1.17.0

func (_e *Factory_Expecter) AssertNotSent(assertion interface{}) *Factory_AssertNotSent_Call

AssertNotSent is a helper method to define mock.On call

  • assertion func(client.Request) bool

func (*Factory_Expecter) AssertNothingSent added in v1.17.0

func (_e *Factory_Expecter) AssertNothingSent() *Factory_AssertNothingSent_Call

AssertNothingSent is a helper method to define mock.On call

func (*Factory_Expecter) AssertSent added in v1.17.0

func (_e *Factory_Expecter) AssertSent(assertion interface{}) *Factory_AssertSent_Call

AssertSent is a helper method to define mock.On call

  • assertion func(client.Request) bool

func (*Factory_Expecter) AssertSentCount added in v1.17.0

func (_e *Factory_Expecter) AssertSentCount(count interface{}) *Factory_AssertSentCount_Call

AssertSentCount is a helper method to define mock.On call

  • count int

func (*Factory_Expecter) BaseUrl added in v1.17.0

func (_e *Factory_Expecter) BaseUrl(url interface{}) *Factory_BaseUrl_Call

BaseUrl is a helper method to define mock.On call

  • url string

func (*Factory_Expecter) Body added in v1.17.0

func (_e *Factory_Expecter) Body() *Factory_Body_Call

Body is a helper method to define mock.On call

func (*Factory_Expecter) Client added in v1.17.0

func (_e *Factory_Expecter) Client(name ...interface{}) *Factory_Client_Call

Client is a helper method to define mock.On call

  • name ...string

func (*Factory_Expecter) ClientName added in v1.17.0

func (_e *Factory_Expecter) ClientName() *Factory_ClientName_Call

ClientName is a helper method to define mock.On call

func (*Factory_Expecter) Clone added in v1.17.0

func (_e *Factory_Expecter) Clone() *Factory_Clone_Call

Clone is a helper method to define mock.On call

func (*Factory_Expecter) Delete added in v1.17.0

func (_e *Factory_Expecter) Delete(uri interface{}, body interface{}) *Factory_Delete_Call

Delete is a helper method to define mock.On call

  • uri string
  • body io.Reader

func (*Factory_Expecter) Fake added in v1.17.0

func (_e *Factory_Expecter) Fake(mocks interface{}) *Factory_Fake_Call

Fake is a helper method to define mock.On call

  • mocks map[string]interface{}

func (*Factory_Expecter) FlushHeaders added in v1.17.0

func (_e *Factory_Expecter) FlushHeaders() *Factory_FlushHeaders_Call

FlushHeaders is a helper method to define mock.On call

func (*Factory_Expecter) Get added in v1.17.0

func (_e *Factory_Expecter) Get(uri interface{}) *Factory_Get_Call

Get is a helper method to define mock.On call

  • uri string

func (*Factory_Expecter) Head added in v1.17.0

func (_e *Factory_Expecter) Head(uri interface{}) *Factory_Head_Call

Head is a helper method to define mock.On call

  • uri string

func (*Factory_Expecter) Header added in v1.17.0

func (_e *Factory_Expecter) Header(key interface{}) *Factory_Header_Call

Header is a helper method to define mock.On call

  • key string

func (*Factory_Expecter) Headers added in v1.17.0

func (_e *Factory_Expecter) Headers() *Factory_Headers_Call

Headers is a helper method to define mock.On call

func (*Factory_Expecter) HttpClient added in v1.17.0

func (_e *Factory_Expecter) HttpClient() *Factory_HttpClient_Call

HttpClient is a helper method to define mock.On call

func (*Factory_Expecter) Input added in v1.17.0

func (_e *Factory_Expecter) Input(key interface{}) *Factory_Input_Call

Input is a helper method to define mock.On call

  • key string

func (*Factory_Expecter) Method added in v1.17.0

func (_e *Factory_Expecter) Method() *Factory_Method_Call

Method is a helper method to define mock.On call

func (*Factory_Expecter) Options added in v1.17.0

func (_e *Factory_Expecter) Options(uri interface{}) *Factory_Options_Call

Options is a helper method to define mock.On call

  • uri string

func (*Factory_Expecter) Patch added in v1.17.0

func (_e *Factory_Expecter) Patch(uri interface{}, body interface{}) *Factory_Patch_Call

Patch is a helper method to define mock.On call

  • uri string
  • body io.Reader

func (*Factory_Expecter) Post added in v1.17.0

func (_e *Factory_Expecter) Post(uri interface{}, body interface{}) *Factory_Post_Call

Post is a helper method to define mock.On call

  • uri string
  • body io.Reader

func (*Factory_Expecter) PreventStrayRequests added in v1.17.0

func (_e *Factory_Expecter) PreventStrayRequests() *Factory_PreventStrayRequests_Call

PreventStrayRequests is a helper method to define mock.On call

func (*Factory_Expecter) Put added in v1.17.0

func (_e *Factory_Expecter) Put(uri interface{}, body interface{}) *Factory_Put_Call

Put is a helper method to define mock.On call

  • uri string
  • body io.Reader

func (*Factory_Expecter) ReplaceHeaders added in v1.17.0

func (_e *Factory_Expecter) ReplaceHeaders(headers interface{}) *Factory_ReplaceHeaders_Call

ReplaceHeaders is a helper method to define mock.On call

  • headers map[string]string

func (*Factory_Expecter) Reset added in v1.17.0

func (_e *Factory_Expecter) Reset() *Factory_Reset_Call

Reset is a helper method to define mock.On call

func (*Factory_Expecter) Response added in v1.17.0

func (_e *Factory_Expecter) Response() *Factory_Response_Call

Response is a helper method to define mock.On call

func (*Factory_Expecter) Sequence added in v1.17.0

func (_e *Factory_Expecter) Sequence() *Factory_Sequence_Call

Sequence is a helper method to define mock.On call

func (*Factory_Expecter) Url added in v1.17.0

Url is a helper method to define mock.On call

func (*Factory_Expecter) WithBasicAuth added in v1.17.0

func (_e *Factory_Expecter) WithBasicAuth(username interface{}, password interface{}) *Factory_WithBasicAuth_Call

WithBasicAuth is a helper method to define mock.On call

  • username string
  • password string

func (*Factory_Expecter) WithContext added in v1.17.0

func (_e *Factory_Expecter) WithContext(ctx interface{}) *Factory_WithContext_Call

WithContext is a helper method to define mock.On call

  • ctx context.Context

func (*Factory_Expecter) WithCookie added in v1.17.0

func (_e *Factory_Expecter) WithCookie(cookie interface{}) *Factory_WithCookie_Call

WithCookie is a helper method to define mock.On call

  • cookie *http.Cookie

func (*Factory_Expecter) WithCookies added in v1.17.0

func (_e *Factory_Expecter) WithCookies(cookies interface{}) *Factory_WithCookies_Call

WithCookies is a helper method to define mock.On call

  • cookies []*http.Cookie

func (*Factory_Expecter) WithHeader added in v1.17.0

func (_e *Factory_Expecter) WithHeader(key interface{}, value interface{}) *Factory_WithHeader_Call

WithHeader is a helper method to define mock.On call

  • key string
  • value string

func (*Factory_Expecter) WithHeaders added in v1.17.0

func (_e *Factory_Expecter) WithHeaders(headers interface{}) *Factory_WithHeaders_Call

WithHeaders is a helper method to define mock.On call

  • headers map[string]string

func (*Factory_Expecter) WithQueryParameter added in v1.17.0

func (_e *Factory_Expecter) WithQueryParameter(key interface{}, value interface{}) *Factory_WithQueryParameter_Call

WithQueryParameter is a helper method to define mock.On call

  • key string
  • value string

func (*Factory_Expecter) WithQueryParameters added in v1.17.0

func (_e *Factory_Expecter) WithQueryParameters(params interface{}) *Factory_WithQueryParameters_Call

WithQueryParameters is a helper method to define mock.On call

  • params map[string]string

func (*Factory_Expecter) WithQueryString added in v1.17.0

func (_e *Factory_Expecter) WithQueryString(query interface{}) *Factory_WithQueryString_Call

WithQueryString is a helper method to define mock.On call

  • query string

func (*Factory_Expecter) WithToken added in v1.17.0

func (_e *Factory_Expecter) WithToken(token interface{}, ttype ...interface{}) *Factory_WithToken_Call

WithToken is a helper method to define mock.On call

  • token string
  • ttype ...string

func (*Factory_Expecter) WithUrlParameter added in v1.17.0

func (_e *Factory_Expecter) WithUrlParameter(key interface{}, value interface{}) *Factory_WithUrlParameter_Call

WithUrlParameter is a helper method to define mock.On call

  • key string
  • value string

func (*Factory_Expecter) WithUrlParameters added in v1.17.0

func (_e *Factory_Expecter) WithUrlParameters(params interface{}) *Factory_WithUrlParameters_Call

WithUrlParameters is a helper method to define mock.On call

  • params map[string]string

func (*Factory_Expecter) WithoutHeader added in v1.17.0

func (_e *Factory_Expecter) WithoutHeader(key interface{}) *Factory_WithoutHeader_Call

WithoutHeader is a helper method to define mock.On call

  • key string

func (*Factory_Expecter) WithoutToken added in v1.17.0

func (_e *Factory_Expecter) WithoutToken() *Factory_WithoutToken_Call

WithoutToken is a helper method to define mock.On call

type Factory_Fake_Call added in v1.17.0

type Factory_Fake_Call struct {
	*mock.Call
}

Factory_Fake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fake'

func (*Factory_Fake_Call) Return added in v1.17.0

func (*Factory_Fake_Call) Run added in v1.17.0

func (_c *Factory_Fake_Call) Run(run func(mocks map[string]interface{})) *Factory_Fake_Call

func (*Factory_Fake_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Fake_Call) RunAndReturn(run func(map[string]interface{}) client.Factory) *Factory_Fake_Call

type Factory_FlushHeaders_Call added in v1.17.0

type Factory_FlushHeaders_Call struct {
	*mock.Call
}

Factory_FlushHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlushHeaders'

func (*Factory_FlushHeaders_Call) Return added in v1.17.0

func (*Factory_FlushHeaders_Call) Run added in v1.17.0

func (*Factory_FlushHeaders_Call) RunAndReturn added in v1.17.0

func (_c *Factory_FlushHeaders_Call) RunAndReturn(run func() client.Request) *Factory_FlushHeaders_Call

type Factory_Get_Call added in v1.17.0

type Factory_Get_Call struct {
	*mock.Call
}

Factory_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*Factory_Get_Call) Return added in v1.17.0

func (_c *Factory_Get_Call) Return(_a0 client.Response, _a1 error) *Factory_Get_Call

func (*Factory_Get_Call) Run added in v1.17.0

func (_c *Factory_Get_Call) Run(run func(uri string)) *Factory_Get_Call

func (*Factory_Get_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Get_Call) RunAndReturn(run func(string) (client.Response, error)) *Factory_Get_Call

type Factory_Head_Call added in v1.17.0

type Factory_Head_Call struct {
	*mock.Call
}

Factory_Head_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Head'

func (*Factory_Head_Call) Return added in v1.17.0

func (*Factory_Head_Call) Run added in v1.17.0

func (_c *Factory_Head_Call) Run(run func(uri string)) *Factory_Head_Call

func (*Factory_Head_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Head_Call) RunAndReturn(run func(string) (client.Response, error)) *Factory_Head_Call

type Factory_Header_Call added in v1.17.0

type Factory_Header_Call struct {
	*mock.Call
}

Factory_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'

func (*Factory_Header_Call) Return added in v1.17.0

func (*Factory_Header_Call) Run added in v1.17.0

func (_c *Factory_Header_Call) Run(run func(key string)) *Factory_Header_Call

func (*Factory_Header_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Header_Call) RunAndReturn(run func(string) string) *Factory_Header_Call

type Factory_Headers_Call added in v1.17.0

type Factory_Headers_Call struct {
	*mock.Call
}

Factory_Headers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Headers'

func (*Factory_Headers_Call) Return added in v1.17.0

func (*Factory_Headers_Call) Run added in v1.17.0

func (_c *Factory_Headers_Call) Run(run func()) *Factory_Headers_Call

func (*Factory_Headers_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Headers_Call) RunAndReturn(run func() http.Header) *Factory_Headers_Call

type Factory_HttpClient_Call added in v1.17.0

type Factory_HttpClient_Call struct {
	*mock.Call
}

Factory_HttpClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HttpClient'

func (*Factory_HttpClient_Call) Return added in v1.17.0

func (*Factory_HttpClient_Call) Run added in v1.17.0

func (_c *Factory_HttpClient_Call) Run(run func()) *Factory_HttpClient_Call

func (*Factory_HttpClient_Call) RunAndReturn added in v1.17.0

func (_c *Factory_HttpClient_Call) RunAndReturn(run func() *http.Client) *Factory_HttpClient_Call

type Factory_Input_Call added in v1.17.0

type Factory_Input_Call struct {
	*mock.Call
}

Factory_Input_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Input'

func (*Factory_Input_Call) Return added in v1.17.0

func (_c *Factory_Input_Call) Return(_a0 interface{}) *Factory_Input_Call

func (*Factory_Input_Call) Run added in v1.17.0

func (_c *Factory_Input_Call) Run(run func(key string)) *Factory_Input_Call

func (*Factory_Input_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Input_Call) RunAndReturn(run func(string) interface{}) *Factory_Input_Call

type Factory_Method_Call added in v1.17.0

type Factory_Method_Call struct {
	*mock.Call
}

Factory_Method_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Method'

func (*Factory_Method_Call) Return added in v1.17.0

func (*Factory_Method_Call) Run added in v1.17.0

func (_c *Factory_Method_Call) Run(run func()) *Factory_Method_Call

func (*Factory_Method_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Method_Call) RunAndReturn(run func() string) *Factory_Method_Call

type Factory_Options_Call added in v1.17.0

type Factory_Options_Call struct {
	*mock.Call
}

Factory_Options_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Options'

func (*Factory_Options_Call) Return added in v1.17.0

func (*Factory_Options_Call) Run added in v1.17.0

func (_c *Factory_Options_Call) Run(run func(uri string)) *Factory_Options_Call

func (*Factory_Options_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Options_Call) RunAndReturn(run func(string) (client.Response, error)) *Factory_Options_Call

type Factory_Patch_Call added in v1.17.0

type Factory_Patch_Call struct {
	*mock.Call
}

Factory_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'

func (*Factory_Patch_Call) Return added in v1.17.0

func (*Factory_Patch_Call) Run added in v1.17.0

func (_c *Factory_Patch_Call) Run(run func(uri string, body io.Reader)) *Factory_Patch_Call

func (*Factory_Patch_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Patch_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Factory_Patch_Call

type Factory_Post_Call added in v1.17.0

type Factory_Post_Call struct {
	*mock.Call
}

Factory_Post_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Post'

func (*Factory_Post_Call) Return added in v1.17.0

func (*Factory_Post_Call) Run added in v1.17.0

func (_c *Factory_Post_Call) Run(run func(uri string, body io.Reader)) *Factory_Post_Call

func (*Factory_Post_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Post_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Factory_Post_Call

type Factory_PreventStrayRequests_Call added in v1.17.0

type Factory_PreventStrayRequests_Call struct {
	*mock.Call
}

Factory_PreventStrayRequests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PreventStrayRequests'

func (*Factory_PreventStrayRequests_Call) Return added in v1.17.0

func (*Factory_PreventStrayRequests_Call) Run added in v1.17.0

func (*Factory_PreventStrayRequests_Call) RunAndReturn added in v1.17.0

type Factory_Put_Call added in v1.17.0

type Factory_Put_Call struct {
	*mock.Call
}

Factory_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*Factory_Put_Call) Return added in v1.17.0

func (_c *Factory_Put_Call) Return(_a0 client.Response, _a1 error) *Factory_Put_Call

func (*Factory_Put_Call) Run added in v1.17.0

func (_c *Factory_Put_Call) Run(run func(uri string, body io.Reader)) *Factory_Put_Call

func (*Factory_Put_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Put_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Factory_Put_Call

type Factory_ReplaceHeaders_Call added in v1.17.0

type Factory_ReplaceHeaders_Call struct {
	*mock.Call
}

Factory_ReplaceHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplaceHeaders'

func (*Factory_ReplaceHeaders_Call) Return added in v1.17.0

func (*Factory_ReplaceHeaders_Call) Run added in v1.17.0

func (_c *Factory_ReplaceHeaders_Call) Run(run func(headers map[string]string)) *Factory_ReplaceHeaders_Call

func (*Factory_ReplaceHeaders_Call) RunAndReturn added in v1.17.0

type Factory_Reset_Call added in v1.17.0

type Factory_Reset_Call struct {
	*mock.Call
}

Factory_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'

func (*Factory_Reset_Call) Return added in v1.17.0

func (_c *Factory_Reset_Call) Return() *Factory_Reset_Call

func (*Factory_Reset_Call) Run added in v1.17.0

func (_c *Factory_Reset_Call) Run(run func()) *Factory_Reset_Call

func (*Factory_Reset_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Reset_Call) RunAndReturn(run func()) *Factory_Reset_Call

type Factory_Response_Call added in v1.17.0

type Factory_Response_Call struct {
	*mock.Call
}

Factory_Response_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Response'

func (*Factory_Response_Call) Return added in v1.17.0

func (*Factory_Response_Call) Run added in v1.17.0

func (_c *Factory_Response_Call) Run(run func()) *Factory_Response_Call

func (*Factory_Response_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Response_Call) RunAndReturn(run func() client.FakeResponse) *Factory_Response_Call

type Factory_Sequence_Call added in v1.17.0

type Factory_Sequence_Call struct {
	*mock.Call
}

Factory_Sequence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sequence'

func (*Factory_Sequence_Call) Return added in v1.17.0

func (*Factory_Sequence_Call) Run added in v1.17.0

func (_c *Factory_Sequence_Call) Run(run func()) *Factory_Sequence_Call

func (*Factory_Sequence_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Sequence_Call) RunAndReturn(run func() client.FakeSequence) *Factory_Sequence_Call

type Factory_Url_Call added in v1.17.0

type Factory_Url_Call struct {
	*mock.Call
}

Factory_Url_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Url'

func (*Factory_Url_Call) Return added in v1.17.0

func (_c *Factory_Url_Call) Return(_a0 string) *Factory_Url_Call

func (*Factory_Url_Call) Run added in v1.17.0

func (_c *Factory_Url_Call) Run(run func()) *Factory_Url_Call

func (*Factory_Url_Call) RunAndReturn added in v1.17.0

func (_c *Factory_Url_Call) RunAndReturn(run func() string) *Factory_Url_Call

type Factory_WithBasicAuth_Call added in v1.17.0

type Factory_WithBasicAuth_Call struct {
	*mock.Call
}

Factory_WithBasicAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithBasicAuth'

func (*Factory_WithBasicAuth_Call) Return added in v1.17.0

func (*Factory_WithBasicAuth_Call) Run added in v1.17.0

func (_c *Factory_WithBasicAuth_Call) Run(run func(username string, password string)) *Factory_WithBasicAuth_Call

func (*Factory_WithBasicAuth_Call) RunAndReturn added in v1.17.0

type Factory_WithContext_Call added in v1.17.0

type Factory_WithContext_Call struct {
	*mock.Call
}

Factory_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'

func (*Factory_WithContext_Call) Return added in v1.17.0

func (*Factory_WithContext_Call) Run added in v1.17.0

func (*Factory_WithContext_Call) RunAndReturn added in v1.17.0

type Factory_WithCookie_Call added in v1.17.0

type Factory_WithCookie_Call struct {
	*mock.Call
}

Factory_WithCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithCookie'

func (*Factory_WithCookie_Call) Return added in v1.17.0

func (*Factory_WithCookie_Call) Run added in v1.17.0

func (_c *Factory_WithCookie_Call) Run(run func(cookie *http.Cookie)) *Factory_WithCookie_Call

func (*Factory_WithCookie_Call) RunAndReturn added in v1.17.0

type Factory_WithCookies_Call added in v1.17.0

type Factory_WithCookies_Call struct {
	*mock.Call
}

Factory_WithCookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithCookies'

func (*Factory_WithCookies_Call) Return added in v1.17.0

func (*Factory_WithCookies_Call) Run added in v1.17.0

func (_c *Factory_WithCookies_Call) Run(run func(cookies []*http.Cookie)) *Factory_WithCookies_Call

func (*Factory_WithCookies_Call) RunAndReturn added in v1.17.0

type Factory_WithHeader_Call added in v1.17.0

type Factory_WithHeader_Call struct {
	*mock.Call
}

Factory_WithHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithHeader'

func (*Factory_WithHeader_Call) Return added in v1.17.0

func (*Factory_WithHeader_Call) Run added in v1.17.0

func (_c *Factory_WithHeader_Call) Run(run func(key string, value string)) *Factory_WithHeader_Call

func (*Factory_WithHeader_Call) RunAndReturn added in v1.17.0

type Factory_WithHeaders_Call added in v1.17.0

type Factory_WithHeaders_Call struct {
	*mock.Call
}

Factory_WithHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithHeaders'

func (*Factory_WithHeaders_Call) Return added in v1.17.0

func (*Factory_WithHeaders_Call) Run added in v1.17.0

func (_c *Factory_WithHeaders_Call) Run(run func(headers map[string]string)) *Factory_WithHeaders_Call

func (*Factory_WithHeaders_Call) RunAndReturn added in v1.17.0

type Factory_WithQueryParameter_Call added in v1.17.0

type Factory_WithQueryParameter_Call struct {
	*mock.Call
}

Factory_WithQueryParameter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryParameter'

func (*Factory_WithQueryParameter_Call) Return added in v1.17.0

func (*Factory_WithQueryParameter_Call) Run added in v1.17.0

func (*Factory_WithQueryParameter_Call) RunAndReturn added in v1.17.0

type Factory_WithQueryParameters_Call added in v1.17.0

type Factory_WithQueryParameters_Call struct {
	*mock.Call
}

Factory_WithQueryParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryParameters'

func (*Factory_WithQueryParameters_Call) Return added in v1.17.0

func (*Factory_WithQueryParameters_Call) Run added in v1.17.0

func (*Factory_WithQueryParameters_Call) RunAndReturn added in v1.17.0

type Factory_WithQueryString_Call added in v1.17.0

type Factory_WithQueryString_Call struct {
	*mock.Call
}

Factory_WithQueryString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryString'

func (*Factory_WithQueryString_Call) Return added in v1.17.0

func (*Factory_WithQueryString_Call) Run added in v1.17.0

func (*Factory_WithQueryString_Call) RunAndReturn added in v1.17.0

type Factory_WithToken_Call added in v1.17.0

type Factory_WithToken_Call struct {
	*mock.Call
}

Factory_WithToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithToken'

func (*Factory_WithToken_Call) Return added in v1.17.0

func (*Factory_WithToken_Call) Run added in v1.17.0

func (_c *Factory_WithToken_Call) Run(run func(token string, ttype ...string)) *Factory_WithToken_Call

func (*Factory_WithToken_Call) RunAndReturn added in v1.17.0

func (_c *Factory_WithToken_Call) RunAndReturn(run func(string, ...string) client.Request) *Factory_WithToken_Call

type Factory_WithUrlParameter_Call added in v1.17.0

type Factory_WithUrlParameter_Call struct {
	*mock.Call
}

Factory_WithUrlParameter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithUrlParameter'

func (*Factory_WithUrlParameter_Call) Return added in v1.17.0

func (*Factory_WithUrlParameter_Call) Run added in v1.17.0

func (*Factory_WithUrlParameter_Call) RunAndReturn added in v1.17.0

type Factory_WithUrlParameters_Call added in v1.17.0

type Factory_WithUrlParameters_Call struct {
	*mock.Call
}

Factory_WithUrlParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithUrlParameters'

func (*Factory_WithUrlParameters_Call) Return added in v1.17.0

func (*Factory_WithUrlParameters_Call) Run added in v1.17.0

func (*Factory_WithUrlParameters_Call) RunAndReturn added in v1.17.0

type Factory_WithoutHeader_Call added in v1.17.0

type Factory_WithoutHeader_Call struct {
	*mock.Call
}

Factory_WithoutHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithoutHeader'

func (*Factory_WithoutHeader_Call) Return added in v1.17.0

func (*Factory_WithoutHeader_Call) Run added in v1.17.0

func (*Factory_WithoutHeader_Call) RunAndReturn added in v1.17.0

type Factory_WithoutToken_Call added in v1.17.0

type Factory_WithoutToken_Call struct {
	*mock.Call
}

Factory_WithoutToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithoutToken'

func (*Factory_WithoutToken_Call) Return added in v1.17.0

func (*Factory_WithoutToken_Call) Run added in v1.17.0

func (*Factory_WithoutToken_Call) RunAndReturn added in v1.17.0

func (_c *Factory_WithoutToken_Call) RunAndReturn(run func() client.Request) *Factory_WithoutToken_Call

type FakeResponse added in v1.17.0

type FakeResponse struct {
	mock.Mock
}

FakeResponse is an autogenerated mock type for the FakeResponse type

func NewFakeResponse added in v1.17.0

func NewFakeResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *FakeResponse

NewFakeResponse creates a new instance of FakeResponse. 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 (*FakeResponse) EXPECT added in v1.17.0

func (_m *FakeResponse) EXPECT() *FakeResponse_Expecter

func (*FakeResponse) File added in v1.17.0

func (_m *FakeResponse) File(status int, path string) client.Response

File provides a mock function with given fields: status, path

func (*FakeResponse) Json added in v1.17.0

func (_m *FakeResponse) Json(status int, obj interface{}) client.Response

Json provides a mock function with given fields: status, obj

func (*FakeResponse) Make added in v1.17.0

func (_m *FakeResponse) Make(status int, body string, header http.Header) client.Response

Make provides a mock function with given fields: status, body, header

func (*FakeResponse) OK added in v1.17.0

func (_m *FakeResponse) OK() client.Response

OK provides a mock function with no fields

func (*FakeResponse) Status added in v1.17.0

func (_m *FakeResponse) Status(status int) client.Response

Status provides a mock function with given fields: status

func (*FakeResponse) String added in v1.17.0

func (_m *FakeResponse) String(status int, body string) client.Response

String provides a mock function with given fields: status, body

type FakeResponse_Expecter added in v1.17.0

type FakeResponse_Expecter struct {
	// contains filtered or unexported fields
}

func (*FakeResponse_Expecter) File added in v1.17.0

func (_e *FakeResponse_Expecter) File(status interface{}, path interface{}) *FakeResponse_File_Call

File is a helper method to define mock.On call

  • status int
  • path string

func (*FakeResponse_Expecter) Json added in v1.17.0

func (_e *FakeResponse_Expecter) Json(status interface{}, obj interface{}) *FakeResponse_Json_Call

Json is a helper method to define mock.On call

  • status int
  • obj interface{}

func (*FakeResponse_Expecter) Make added in v1.17.0

func (_e *FakeResponse_Expecter) Make(status interface{}, body interface{}, header interface{}) *FakeResponse_Make_Call

Make is a helper method to define mock.On call

  • status int
  • body string
  • header http.Header

func (*FakeResponse_Expecter) OK added in v1.17.0

OK is a helper method to define mock.On call

func (*FakeResponse_Expecter) Status added in v1.17.0

func (_e *FakeResponse_Expecter) Status(status interface{}) *FakeResponse_Status_Call

Status is a helper method to define mock.On call

  • status int

func (*FakeResponse_Expecter) String added in v1.17.0

func (_e *FakeResponse_Expecter) String(status interface{}, body interface{}) *FakeResponse_String_Call

String is a helper method to define mock.On call

  • status int
  • body string

type FakeResponse_File_Call added in v1.17.0

type FakeResponse_File_Call struct {
	*mock.Call
}

FakeResponse_File_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'File'

func (*FakeResponse_File_Call) Return added in v1.17.0

func (*FakeResponse_File_Call) Run added in v1.17.0

func (_c *FakeResponse_File_Call) Run(run func(status int, path string)) *FakeResponse_File_Call

func (*FakeResponse_File_Call) RunAndReturn added in v1.17.0

type FakeResponse_Json_Call added in v1.17.0

type FakeResponse_Json_Call struct {
	*mock.Call
}

FakeResponse_Json_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Json'

func (*FakeResponse_Json_Call) Return added in v1.17.0

func (*FakeResponse_Json_Call) Run added in v1.17.0

func (_c *FakeResponse_Json_Call) Run(run func(status int, obj interface{})) *FakeResponse_Json_Call

func (*FakeResponse_Json_Call) RunAndReturn added in v1.17.0

func (_c *FakeResponse_Json_Call) RunAndReturn(run func(int, interface{}) client.Response) *FakeResponse_Json_Call

type FakeResponse_Make_Call added in v1.17.0

type FakeResponse_Make_Call struct {
	*mock.Call
}

FakeResponse_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'

func (*FakeResponse_Make_Call) Return added in v1.17.0

func (*FakeResponse_Make_Call) Run added in v1.17.0

func (_c *FakeResponse_Make_Call) Run(run func(status int, body string, header http.Header)) *FakeResponse_Make_Call

func (*FakeResponse_Make_Call) RunAndReturn added in v1.17.0

type FakeResponse_OK_Call added in v1.17.0

type FakeResponse_OK_Call struct {
	*mock.Call
}

FakeResponse_OK_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OK'

func (*FakeResponse_OK_Call) Return added in v1.17.0

func (*FakeResponse_OK_Call) Run added in v1.17.0

func (_c *FakeResponse_OK_Call) Run(run func()) *FakeResponse_OK_Call

func (*FakeResponse_OK_Call) RunAndReturn added in v1.17.0

func (_c *FakeResponse_OK_Call) RunAndReturn(run func() client.Response) *FakeResponse_OK_Call

type FakeResponse_Status_Call added in v1.17.0

type FakeResponse_Status_Call struct {
	*mock.Call
}

FakeResponse_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'

func (*FakeResponse_Status_Call) Return added in v1.17.0

func (*FakeResponse_Status_Call) Run added in v1.17.0

func (_c *FakeResponse_Status_Call) Run(run func(status int)) *FakeResponse_Status_Call

func (*FakeResponse_Status_Call) RunAndReturn added in v1.17.0

type FakeResponse_String_Call added in v1.17.0

type FakeResponse_String_Call struct {
	*mock.Call
}

FakeResponse_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'

func (*FakeResponse_String_Call) Return added in v1.17.0

func (*FakeResponse_String_Call) Run added in v1.17.0

func (_c *FakeResponse_String_Call) Run(run func(status int, body string)) *FakeResponse_String_Call

func (*FakeResponse_String_Call) RunAndReturn added in v1.17.0

type FakeSequence added in v1.17.0

type FakeSequence struct {
	mock.Mock
}

FakeSequence is an autogenerated mock type for the FakeSequence type

func NewFakeSequence added in v1.17.0

func NewFakeSequence(t interface {
	mock.TestingT
	Cleanup(func())
}) *FakeSequence

NewFakeSequence creates a new instance of FakeSequence. 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 (*FakeSequence) EXPECT added in v1.17.0

func (_m *FakeSequence) EXPECT() *FakeSequence_Expecter

func (*FakeSequence) Push added in v1.17.0

func (_m *FakeSequence) Push(response client.Response, count ...int) client.FakeSequence

Push provides a mock function with given fields: response, count

func (*FakeSequence) PushStatus added in v1.17.0

func (_m *FakeSequence) PushStatus(status int, count ...int) client.FakeSequence

PushStatus provides a mock function with given fields: status, count

func (*FakeSequence) PushString added in v1.17.0

func (_m *FakeSequence) PushString(status int, body string, count ...int) client.FakeSequence

PushString provides a mock function with given fields: status, body, count

func (*FakeSequence) WhenEmpty added in v1.17.0

func (_m *FakeSequence) WhenEmpty(response client.Response) client.FakeSequence

WhenEmpty provides a mock function with given fields: response

type FakeSequence_Expecter added in v1.17.0

type FakeSequence_Expecter struct {
	// contains filtered or unexported fields
}

func (*FakeSequence_Expecter) Push added in v1.17.0

func (_e *FakeSequence_Expecter) Push(response interface{}, count ...interface{}) *FakeSequence_Push_Call

Push is a helper method to define mock.On call

  • response client.Response
  • count ...int

func (*FakeSequence_Expecter) PushStatus added in v1.17.0

func (_e *FakeSequence_Expecter) PushStatus(status interface{}, count ...interface{}) *FakeSequence_PushStatus_Call

PushStatus is a helper method to define mock.On call

  • status int
  • count ...int

func (*FakeSequence_Expecter) PushString added in v1.17.0

func (_e *FakeSequence_Expecter) PushString(status interface{}, body interface{}, count ...interface{}) *FakeSequence_PushString_Call

PushString is a helper method to define mock.On call

  • status int
  • body string
  • count ...int

func (*FakeSequence_Expecter) WhenEmpty added in v1.17.0

func (_e *FakeSequence_Expecter) WhenEmpty(response interface{}) *FakeSequence_WhenEmpty_Call

WhenEmpty is a helper method to define mock.On call

  • response client.Response

type FakeSequence_PushStatus_Call added in v1.17.0

type FakeSequence_PushStatus_Call struct {
	*mock.Call
}

FakeSequence_PushStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushStatus'

func (*FakeSequence_PushStatus_Call) Return added in v1.17.0

func (*FakeSequence_PushStatus_Call) Run added in v1.17.0

func (_c *FakeSequence_PushStatus_Call) Run(run func(status int, count ...int)) *FakeSequence_PushStatus_Call

func (*FakeSequence_PushStatus_Call) RunAndReturn added in v1.17.0

type FakeSequence_PushString_Call added in v1.17.0

type FakeSequence_PushString_Call struct {
	*mock.Call
}

FakeSequence_PushString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushString'

func (*FakeSequence_PushString_Call) Return added in v1.17.0

func (*FakeSequence_PushString_Call) Run added in v1.17.0

func (_c *FakeSequence_PushString_Call) Run(run func(status int, body string, count ...int)) *FakeSequence_PushString_Call

func (*FakeSequence_PushString_Call) RunAndReturn added in v1.17.0

type FakeSequence_Push_Call added in v1.17.0

type FakeSequence_Push_Call struct {
	*mock.Call
}

FakeSequence_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'

func (*FakeSequence_Push_Call) Return added in v1.17.0

func (*FakeSequence_Push_Call) Run added in v1.17.0

func (_c *FakeSequence_Push_Call) Run(run func(response client.Response, count ...int)) *FakeSequence_Push_Call

func (*FakeSequence_Push_Call) RunAndReturn added in v1.17.0

type FakeSequence_WhenEmpty_Call added in v1.17.0

type FakeSequence_WhenEmpty_Call struct {
	*mock.Call
}

FakeSequence_WhenEmpty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhenEmpty'

func (*FakeSequence_WhenEmpty_Call) Return added in v1.17.0

func (*FakeSequence_WhenEmpty_Call) Run added in v1.17.0

func (*FakeSequence_WhenEmpty_Call) RunAndReturn added in v1.17.0

type Request

type Request struct {
	mock.Mock
}

Request is an autogenerated mock type for the Request type

func NewRequest

func NewRequest(t interface {
	mock.TestingT
	Cleanup(func())
}) *Request

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) Accept

func (_m *Request) Accept(contentType string) client.Request

Accept provides a mock function with given fields: contentType

func (*Request) AcceptJSON

func (_m *Request) AcceptJSON() client.Request

AcceptJSON provides a mock function with no fields

func (*Request) AsForm

func (_m *Request) AsForm() client.Request

AsForm provides a mock function with no fields

func (*Request) BaseUrl added in v1.17.0

func (_m *Request) BaseUrl(url string) client.Request

BaseUrl provides a mock function with given fields: url

func (*Request) Body added in v1.17.0

func (_m *Request) Body() string

Body provides a mock function with no fields

func (*Request) ClientName added in v1.17.0

func (_m *Request) ClientName() string

ClientName provides a mock function with no fields

func (*Request) Clone

func (_m *Request) Clone() client.Request

Clone provides a mock function with no fields

func (*Request) Delete

func (_m *Request) Delete(uri string, body io.Reader) (client.Response, error)

Delete provides a mock function with given fields: uri, body

func (*Request) EXPECT

func (_m *Request) EXPECT() *Request_Expecter

func (*Request) FlushHeaders

func (_m *Request) FlushHeaders() client.Request

FlushHeaders provides a mock function with no fields

func (*Request) Get

func (_m *Request) Get(uri string) (client.Response, error)

Get provides a mock function with given fields: uri

func (*Request) Head

func (_m *Request) Head(uri string) (client.Response, error)

Head provides a mock function with given fields: uri

func (*Request) Header added in v1.17.0

func (_m *Request) Header(key string) string

Header provides a mock function with given fields: key

func (*Request) Headers added in v1.17.0

func (_m *Request) Headers() http.Header

Headers provides a mock function with no fields

func (*Request) HttpClient added in v1.17.0

func (_m *Request) HttpClient() *http.Client

HttpClient provides a mock function with no fields

func (*Request) Input added in v1.17.0

func (_m *Request) Input(key string) interface{}

Input provides a mock function with given fields: key

func (*Request) Method added in v1.17.0

func (_m *Request) Method() string

Method provides a mock function with no fields

func (*Request) Options

func (_m *Request) Options(uri string) (client.Response, error)

Options provides a mock function with given fields: uri

func (*Request) Patch

func (_m *Request) Patch(uri string, body io.Reader) (client.Response, error)

Patch provides a mock function with given fields: uri, body

func (*Request) Post

func (_m *Request) Post(uri string, body io.Reader) (client.Response, error)

Post provides a mock function with given fields: uri, body

func (*Request) Put

func (_m *Request) Put(uri string, body io.Reader) (client.Response, error)

Put provides a mock function with given fields: uri, body

func (*Request) ReplaceHeaders

func (_m *Request) ReplaceHeaders(headers map[string]string) client.Request

ReplaceHeaders provides a mock function with given fields: headers

func (*Request) Url added in v1.17.0

func (_m *Request) Url() string

Url provides a mock function with no fields

func (*Request) WithBasicAuth

func (_m *Request) WithBasicAuth(username string, password string) client.Request

WithBasicAuth provides a mock function with given fields: username, password

func (*Request) WithContext

func (_m *Request) WithContext(ctx context.Context) client.Request

WithContext provides a mock function with given fields: ctx

func (*Request) WithCookie

func (_m *Request) WithCookie(cookie *http.Cookie) client.Request

WithCookie provides a mock function with given fields: cookie

func (*Request) WithCookies

func (_m *Request) WithCookies(cookies []*http.Cookie) client.Request

WithCookies provides a mock function with given fields: cookies

func (*Request) WithHeader

func (_m *Request) WithHeader(key string, value string) client.Request

WithHeader provides a mock function with given fields: key, value

func (*Request) WithHeaders

func (_m *Request) WithHeaders(headers map[string]string) client.Request

WithHeaders provides a mock function with given fields: headers

func (*Request) WithQueryParameter

func (_m *Request) WithQueryParameter(key string, value string) client.Request

WithQueryParameter provides a mock function with given fields: key, value

func (*Request) WithQueryParameters

func (_m *Request) WithQueryParameters(params map[string]string) client.Request

WithQueryParameters provides a mock function with given fields: params

func (*Request) WithQueryString

func (_m *Request) WithQueryString(query string) client.Request

WithQueryString provides a mock function with given fields: query

func (*Request) WithToken

func (_m *Request) WithToken(token string, ttype ...string) client.Request

WithToken provides a mock function with given fields: token, ttype

func (*Request) WithUrlParameter

func (_m *Request) WithUrlParameter(key string, value string) client.Request

WithUrlParameter provides a mock function with given fields: key, value

func (*Request) WithUrlParameters

func (_m *Request) WithUrlParameters(params map[string]string) client.Request

WithUrlParameters provides a mock function with given fields: params

func (*Request) WithoutHeader

func (_m *Request) WithoutHeader(key string) client.Request

WithoutHeader provides a mock function with given fields: key

func (*Request) WithoutToken

func (_m *Request) WithoutToken() client.Request

WithoutToken provides a mock function with no fields

type Request_AcceptJSON_Call

type Request_AcceptJSON_Call struct {
	*mock.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 (*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

type Request_Accept_Call struct {
	*mock.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 (*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

type Request_AsForm_Call struct {
	*mock.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 (*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_BaseUrl_Call added in v1.17.0

type Request_BaseUrl_Call struct {
	*mock.Call
}

Request_BaseUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BaseUrl'

func (*Request_BaseUrl_Call) Return added in v1.17.0

func (*Request_BaseUrl_Call) Run added in v1.17.0

func (_c *Request_BaseUrl_Call) Run(run func(url string)) *Request_BaseUrl_Call

func (*Request_BaseUrl_Call) RunAndReturn added in v1.17.0

func (_c *Request_BaseUrl_Call) RunAndReturn(run func(string) client.Request) *Request_BaseUrl_Call

type Request_Body_Call added in v1.17.0

type Request_Body_Call struct {
	*mock.Call
}

Request_Body_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Body'

func (*Request_Body_Call) Return added in v1.17.0

func (_c *Request_Body_Call) Return(_a0 string) *Request_Body_Call

func (*Request_Body_Call) Run added in v1.17.0

func (_c *Request_Body_Call) Run(run func()) *Request_Body_Call

func (*Request_Body_Call) RunAndReturn added in v1.17.0

func (_c *Request_Body_Call) RunAndReturn(run func() string) *Request_Body_Call

type Request_ClientName_Call added in v1.17.0

type Request_ClientName_Call struct {
	*mock.Call
}

Request_ClientName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClientName'

func (*Request_ClientName_Call) Return added in v1.17.0

func (*Request_ClientName_Call) Run added in v1.17.0

func (_c *Request_ClientName_Call) Run(run func()) *Request_ClientName_Call

func (*Request_ClientName_Call) RunAndReturn added in v1.17.0

func (_c *Request_ClientName_Call) RunAndReturn(run func() string) *Request_ClientName_Call

type Request_Clone_Call

type Request_Clone_Call struct {
	*mock.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 (*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

type Request_Delete_Call struct {
	*mock.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 (*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) BaseUrl added in v1.17.0

func (_e *Request_Expecter) BaseUrl(url interface{}) *Request_BaseUrl_Call

BaseUrl is a helper method to define mock.On call

  • url string

func (*Request_Expecter) Body added in v1.17.0

func (_e *Request_Expecter) Body() *Request_Body_Call

Body is a helper method to define mock.On call

func (*Request_Expecter) ClientName added in v1.17.0

func (_e *Request_Expecter) ClientName() *Request_ClientName_Call

ClientName is a helper method to define mock.On call

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) Header added in v1.17.0

func (_e *Request_Expecter) Header(key interface{}) *Request_Header_Call

Header is a helper method to define mock.On call

  • key string

func (*Request_Expecter) Headers added in v1.17.0

func (_e *Request_Expecter) Headers() *Request_Headers_Call

Headers is a helper method to define mock.On call

func (*Request_Expecter) HttpClient added in v1.17.0

func (_e *Request_Expecter) HttpClient() *Request_HttpClient_Call

HttpClient is a helper method to define mock.On call

func (*Request_Expecter) Input added in v1.17.0

func (_e *Request_Expecter) Input(key interface{}) *Request_Input_Call

Input is a helper method to define mock.On call

  • key string

func (*Request_Expecter) Method added in v1.17.0

func (_e *Request_Expecter) Method() *Request_Method_Call

Method is a helper method to define mock.On call

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) Url added in v1.17.0

Url is a helper method to define mock.On call

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(headers interface{}) *Request_WithHeaders_Call

WithHeaders is a helper method to define mock.On call

  • headers 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(params interface{}) *Request_WithQueryParameters_Call

WithQueryParameters is a helper method to define mock.On call

  • params 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(params interface{}) *Request_WithUrlParameters_Call

WithUrlParameters is a helper method to define mock.On call

  • params 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

type Request_FlushHeaders_Call struct {
	*mock.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 (*Request_FlushHeaders_Call) Run

func (*Request_FlushHeaders_Call) RunAndReturn

func (_c *Request_FlushHeaders_Call) RunAndReturn(run func() client.Request) *Request_FlushHeaders_Call

type Request_Get_Call

type Request_Get_Call struct {
	*mock.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

type Request_Head_Call struct {
	*mock.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 (*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_Header_Call added in v1.17.0

type Request_Header_Call struct {
	*mock.Call
}

Request_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'

func (*Request_Header_Call) Return added in v1.17.0

func (*Request_Header_Call) Run added in v1.17.0

func (_c *Request_Header_Call) Run(run func(key string)) *Request_Header_Call

func (*Request_Header_Call) RunAndReturn added in v1.17.0

func (_c *Request_Header_Call) RunAndReturn(run func(string) string) *Request_Header_Call

type Request_Headers_Call added in v1.17.0

type Request_Headers_Call struct {
	*mock.Call
}

Request_Headers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Headers'

func (*Request_Headers_Call) Return added in v1.17.0

func (*Request_Headers_Call) Run added in v1.17.0

func (_c *Request_Headers_Call) Run(run func()) *Request_Headers_Call

func (*Request_Headers_Call) RunAndReturn added in v1.17.0

func (_c *Request_Headers_Call) RunAndReturn(run func() http.Header) *Request_Headers_Call

type Request_HttpClient_Call added in v1.17.0

type Request_HttpClient_Call struct {
	*mock.Call
}

Request_HttpClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HttpClient'

func (*Request_HttpClient_Call) Return added in v1.17.0

func (*Request_HttpClient_Call) Run added in v1.17.0

func (_c *Request_HttpClient_Call) Run(run func()) *Request_HttpClient_Call

func (*Request_HttpClient_Call) RunAndReturn added in v1.17.0

func (_c *Request_HttpClient_Call) RunAndReturn(run func() *http.Client) *Request_HttpClient_Call

type Request_Input_Call added in v1.17.0

type Request_Input_Call struct {
	*mock.Call
}

Request_Input_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Input'

func (*Request_Input_Call) Return added in v1.17.0

func (_c *Request_Input_Call) Return(_a0 interface{}) *Request_Input_Call

func (*Request_Input_Call) Run added in v1.17.0

func (_c *Request_Input_Call) Run(run func(key string)) *Request_Input_Call

func (*Request_Input_Call) RunAndReturn added in v1.17.0

func (_c *Request_Input_Call) RunAndReturn(run func(string) interface{}) *Request_Input_Call

type Request_Method_Call added in v1.17.0

type Request_Method_Call struct {
	*mock.Call
}

Request_Method_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Method'

func (*Request_Method_Call) Return added in v1.17.0

func (*Request_Method_Call) Run added in v1.17.0

func (_c *Request_Method_Call) Run(run func()) *Request_Method_Call

func (*Request_Method_Call) RunAndReturn added in v1.17.0

func (_c *Request_Method_Call) RunAndReturn(run func() string) *Request_Method_Call

type Request_Options_Call

type Request_Options_Call struct {
	*mock.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 (*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

type Request_Patch_Call struct {
	*mock.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 (*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

type Request_Post_Call struct {
	*mock.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 (*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

type Request_Put_Call struct {
	*mock.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

type Request_ReplaceHeaders_Call struct {
	*mock.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 (*Request_ReplaceHeaders_Call) Run

func (_c *Request_ReplaceHeaders_Call) Run(run func(headers map[string]string)) *Request_ReplaceHeaders_Call

func (*Request_ReplaceHeaders_Call) RunAndReturn

type Request_Url_Call added in v1.17.0

type Request_Url_Call struct {
	*mock.Call
}

Request_Url_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Url'

func (*Request_Url_Call) Return added in v1.17.0

func (_c *Request_Url_Call) Return(_a0 string) *Request_Url_Call

func (*Request_Url_Call) Run added in v1.17.0

func (_c *Request_Url_Call) Run(run func()) *Request_Url_Call

func (*Request_Url_Call) RunAndReturn added in v1.17.0

func (_c *Request_Url_Call) RunAndReturn(run func() string) *Request_Url_Call

type Request_WithBasicAuth_Call

type Request_WithBasicAuth_Call struct {
	*mock.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 (*Request_WithBasicAuth_Call) Run

func (_c *Request_WithBasicAuth_Call) Run(run func(username string, password string)) *Request_WithBasicAuth_Call

func (*Request_WithBasicAuth_Call) RunAndReturn

type Request_WithContext_Call

type Request_WithContext_Call struct {
	*mock.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 (*Request_WithContext_Call) Run

func (*Request_WithContext_Call) RunAndReturn

type Request_WithCookie_Call

type Request_WithCookie_Call struct {
	*mock.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 (*Request_WithCookie_Call) Run

func (_c *Request_WithCookie_Call) Run(run func(cookie *http.Cookie)) *Request_WithCookie_Call

func (*Request_WithCookie_Call) RunAndReturn

type Request_WithCookies_Call

type Request_WithCookies_Call struct {
	*mock.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 (*Request_WithCookies_Call) Run

func (_c *Request_WithCookies_Call) Run(run func(cookies []*http.Cookie)) *Request_WithCookies_Call

func (*Request_WithCookies_Call) RunAndReturn

type Request_WithHeader_Call

type Request_WithHeader_Call struct {
	*mock.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 (*Request_WithHeader_Call) Run

func (_c *Request_WithHeader_Call) Run(run func(key string, value string)) *Request_WithHeader_Call

func (*Request_WithHeader_Call) RunAndReturn

type Request_WithHeaders_Call

type Request_WithHeaders_Call struct {
	*mock.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 (*Request_WithHeaders_Call) Run

func (_c *Request_WithHeaders_Call) Run(run func(headers map[string]string)) *Request_WithHeaders_Call

func (*Request_WithHeaders_Call) RunAndReturn

type Request_WithQueryParameter_Call

type Request_WithQueryParameter_Call struct {
	*mock.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 (*Request_WithQueryParameter_Call) Run

func (*Request_WithQueryParameter_Call) RunAndReturn

type Request_WithQueryParameters_Call

type Request_WithQueryParameters_Call struct {
	*mock.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 (*Request_WithQueryParameters_Call) Run

func (*Request_WithQueryParameters_Call) RunAndReturn

type Request_WithQueryString_Call

type Request_WithQueryString_Call struct {
	*mock.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 (*Request_WithQueryString_Call) Run

func (*Request_WithQueryString_Call) RunAndReturn

type Request_WithToken_Call

type Request_WithToken_Call struct {
	*mock.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 (*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

type Request_WithUrlParameter_Call struct {
	*mock.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 (*Request_WithUrlParameter_Call) Run

func (*Request_WithUrlParameter_Call) RunAndReturn

type Request_WithUrlParameters_Call

type Request_WithUrlParameters_Call struct {
	*mock.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 (*Request_WithUrlParameters_Call) Run

func (*Request_WithUrlParameters_Call) RunAndReturn

type Request_WithoutHeader_Call

type Request_WithoutHeader_Call struct {
	*mock.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 (*Request_WithoutHeader_Call) Run

func (*Request_WithoutHeader_Call) RunAndReturn

type Request_WithoutToken_Call

type Request_WithoutToken_Call struct {
	*mock.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 (*Request_WithoutToken_Call) Run

func (*Request_WithoutToken_Call) RunAndReturn

func (_c *Request_WithoutToken_Call) RunAndReturn(run func() client.Request) *Request_WithoutToken_Call

type Response

type Response struct {
	mock.Mock
}

Response is an autogenerated mock type for the Response type

func NewResponse

func NewResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *Response

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) Accepted

func (_m *Response) Accepted() bool

Accepted provides a mock function with no fields

func (*Response) BadRequest

func (_m *Response) BadRequest() bool

BadRequest provides a mock function with no fields

func (*Response) Bind added in v1.17.0

func (_m *Response) Bind(value interface{}) error

Bind provides a mock function with given fields: value

func (*Response) Body

func (_m *Response) Body() (string, error)

Body provides a mock function with no fields

func (*Response) ClientError

func (_m *Response) ClientError() bool

ClientError provides a mock function with no fields

func (*Response) Conflict

func (_m *Response) Conflict() bool

Conflict provides a mock function with no fields

func (*Response) Cookie

func (_m *Response) Cookie(name string) *http.Cookie

Cookie provides a mock function with given fields: name

func (*Response) Cookies

func (_m *Response) Cookies() []*http.Cookie

Cookies provides a mock function with no fields

func (*Response) Created

func (_m *Response) Created() bool

Created provides a mock function with no fields

func (*Response) EXPECT

func (_m *Response) EXPECT() *Response_Expecter

func (*Response) Failed

func (_m *Response) Failed() bool

Failed provides a mock function with no fields

func (*Response) Forbidden

func (_m *Response) Forbidden() bool

Forbidden provides a mock function with no fields

func (*Response) Found

func (_m *Response) Found() bool

Found provides a mock function with no fields

func (*Response) Header

func (_m *Response) Header(name string) string

Header provides a mock function with given fields: name

func (*Response) Headers

func (_m *Response) Headers() http.Header

Headers provides a mock function with no fields

func (*Response) Json

func (_m *Response) Json() (map[string]interface{}, error)

Json provides a mock function with no fields

func (*Response) MovedPermanently

func (_m *Response) MovedPermanently() bool

MovedPermanently provides a mock function with no fields

func (*Response) NoContent

func (_m *Response) NoContent() bool

NoContent provides a mock function with no fields

func (*Response) NotFound

func (_m *Response) NotFound() bool

NotFound provides a mock function with no fields

func (*Response) OK

func (_m *Response) OK() bool

OK provides a mock function with no fields

func (*Response) Origin added in v1.17.0

func (_m *Response) Origin() *http.Response

Origin provides a mock function with no fields

func (*Response) PaymentRequired

func (_m *Response) PaymentRequired() bool

PaymentRequired provides a mock function with no fields

func (*Response) Redirect

func (_m *Response) Redirect() bool

Redirect provides a mock function with no fields

func (*Response) RequestTimeout

func (_m *Response) RequestTimeout() bool

RequestTimeout provides a mock function with no fields

func (*Response) ServerError

func (_m *Response) ServerError() bool

ServerError provides a mock function with no fields

func (*Response) Status

func (_m *Response) Status() int

Status provides a mock function with no fields

func (*Response) Stream added in v1.17.0

func (_m *Response) Stream() (io.ReadCloser, error)

Stream provides a mock function with no fields

func (*Response) Successful

func (_m *Response) Successful() bool

Successful provides a mock function with no fields

func (*Response) TooManyRequests

func (_m *Response) TooManyRequests() bool

TooManyRequests provides a mock function with no fields

func (*Response) Unauthorized

func (_m *Response) Unauthorized() bool

Unauthorized provides a mock function with no fields

func (*Response) UnprocessableEntity

func (_m *Response) UnprocessableEntity() bool

UnprocessableEntity provides a mock function with no fields

type Response_Accepted_Call

type Response_Accepted_Call struct {
	*mock.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 (*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

type Response_BadRequest_Call struct {
	*mock.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 (*Response_BadRequest_Call) Run

func (*Response_BadRequest_Call) RunAndReturn

func (_c *Response_BadRequest_Call) RunAndReturn(run func() bool) *Response_BadRequest_Call

type Response_Bind_Call added in v1.17.0

type Response_Bind_Call struct {
	*mock.Call
}

Response_Bind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Bind'

func (*Response_Bind_Call) Return added in v1.17.0

func (_c *Response_Bind_Call) Return(_a0 error) *Response_Bind_Call

func (*Response_Bind_Call) Run added in v1.17.0

func (_c *Response_Bind_Call) Run(run func(value interface{})) *Response_Bind_Call

func (*Response_Bind_Call) RunAndReturn added in v1.17.0

func (_c *Response_Bind_Call) RunAndReturn(run func(interface{}) error) *Response_Bind_Call

type Response_Body_Call

type Response_Body_Call struct {
	*mock.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

type Response_ClientError_Call struct {
	*mock.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 (*Response_ClientError_Call) Run

func (*Response_ClientError_Call) RunAndReturn

func (_c *Response_ClientError_Call) RunAndReturn(run func() bool) *Response_ClientError_Call

type Response_Conflict_Call

type Response_Conflict_Call struct {
	*mock.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 (*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 struct {
	*mock.Call
}

Response_Cookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookie'

func (_c *Response_Cookie_Call) Run(run func(name string)) *Response_Cookie_Call
func (_c *Response_Cookie_Call) RunAndReturn(run func(string) *http.Cookie) *Response_Cookie_Call

type Response_Cookies_Call

type Response_Cookies_Call struct {
	*mock.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 (*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

type Response_Created_Call struct {
	*mock.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 (*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) Bind added in v1.17.0

func (_e *Response_Expecter) Bind(value interface{}) *Response_Bind_Call

Bind is a helper method to define mock.On call

  • value interface{}

func (*Response_Expecter) Body

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

Cookies is a helper method to define mock.On call

func (*Response_Expecter) Created

Created is a helper method to define mock.On call

func (*Response_Expecter) Failed

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

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

Headers is a helper method to define mock.On call

func (*Response_Expecter) Json

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

OK is a helper method to define mock.On call

func (*Response_Expecter) Origin added in v1.17.0

Origin 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

Status is a helper method to define mock.On call

func (*Response_Expecter) Stream added in v1.17.0

Stream 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

type Response_Failed_Call struct {
	*mock.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 (*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

type Response_Forbidden_Call struct {
	*mock.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 (*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

type Response_Found_Call struct {
	*mock.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

type Response_Header_Call struct {
	*mock.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 (*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

type Response_Headers_Call struct {
	*mock.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 (*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

type Response_Json_Call struct {
	*mock.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

type Response_MovedPermanently_Call struct {
	*mock.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 (*Response_MovedPermanently_Call) Run

func (*Response_MovedPermanently_Call) RunAndReturn

type Response_NoContent_Call

type Response_NoContent_Call struct {
	*mock.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 (*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

type Response_NotFound_Call struct {
	*mock.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 (*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

type Response_OK_Call struct {
	*mock.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_Origin_Call added in v1.17.0

type Response_Origin_Call struct {
	*mock.Call
}

Response_Origin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Origin'

func (*Response_Origin_Call) Return added in v1.17.0

func (*Response_Origin_Call) Run added in v1.17.0

func (_c *Response_Origin_Call) Run(run func()) *Response_Origin_Call

func (*Response_Origin_Call) RunAndReturn added in v1.17.0

func (_c *Response_Origin_Call) RunAndReturn(run func() *http.Response) *Response_Origin_Call

type Response_PaymentRequired_Call

type Response_PaymentRequired_Call struct {
	*mock.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 (*Response_PaymentRequired_Call) Run

func (*Response_PaymentRequired_Call) RunAndReturn

type Response_Redirect_Call

type Response_Redirect_Call struct {
	*mock.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 (*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

type Response_RequestTimeout_Call struct {
	*mock.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 (*Response_RequestTimeout_Call) Run

func (*Response_RequestTimeout_Call) RunAndReturn

func (_c *Response_RequestTimeout_Call) RunAndReturn(run func() bool) *Response_RequestTimeout_Call

type Response_ServerError_Call

type Response_ServerError_Call struct {
	*mock.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 (*Response_ServerError_Call) Run

func (*Response_ServerError_Call) RunAndReturn

func (_c *Response_ServerError_Call) RunAndReturn(run func() bool) *Response_ServerError_Call

type Response_Status_Call

type Response_Status_Call struct {
	*mock.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 (*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_Stream_Call added in v1.17.0

type Response_Stream_Call struct {
	*mock.Call
}

Response_Stream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stream'

func (*Response_Stream_Call) Return added in v1.17.0

func (*Response_Stream_Call) Run added in v1.17.0

func (_c *Response_Stream_Call) Run(run func()) *Response_Stream_Call

func (*Response_Stream_Call) RunAndReturn added in v1.17.0

func (_c *Response_Stream_Call) RunAndReturn(run func() (io.ReadCloser, error)) *Response_Stream_Call

type Response_Successful_Call

type Response_Successful_Call struct {
	*mock.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 (*Response_Successful_Call) Run

func (*Response_Successful_Call) RunAndReturn

func (_c *Response_Successful_Call) RunAndReturn(run func() bool) *Response_Successful_Call

type Response_TooManyRequests_Call

type Response_TooManyRequests_Call struct {
	*mock.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 (*Response_TooManyRequests_Call) Run

func (*Response_TooManyRequests_Call) RunAndReturn

type Response_Unauthorized_Call

type Response_Unauthorized_Call struct {
	*mock.Call
}

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 (*Response_Unauthorized_Call) Run

func (*Response_Unauthorized_Call) RunAndReturn

func (_c *Response_Unauthorized_Call) RunAndReturn(run func() bool) *Response_Unauthorized_Call

type Response_UnprocessableEntity_Call

type Response_UnprocessableEntity_Call struct {
	*mock.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 (*Response_UnprocessableEntity_Call) Run

func (*Response_UnprocessableEntity_Call) RunAndReturn

Jump to

Keyboard shortcuts

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