http

package
v1.15.8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortableResponse added in v1.15.0

type AbortableResponse struct {
	mock.Mock
}

AbortableResponse is an autogenerated mock type for the AbortableResponse type

func NewAbortableResponse added in v1.15.0

func NewAbortableResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *AbortableResponse

NewAbortableResponse creates a new instance of AbortableResponse. 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 (*AbortableResponse) Abort added in v1.15.0

func (_m *AbortableResponse) Abort() error

Abort provides a mock function with no fields

func (*AbortableResponse) EXPECT added in v1.15.0

func (*AbortableResponse) Render added in v1.15.0

func (_m *AbortableResponse) Render() error

Render provides a mock function with no fields

type AbortableResponse_Abort_Call added in v1.15.0

type AbortableResponse_Abort_Call struct {
	*mock.Call
}

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

func (*AbortableResponse_Abort_Call) Return added in v1.15.0

func (*AbortableResponse_Abort_Call) Run added in v1.15.0

func (*AbortableResponse_Abort_Call) RunAndReturn added in v1.15.0

func (_c *AbortableResponse_Abort_Call) RunAndReturn(run func() error) *AbortableResponse_Abort_Call

type AbortableResponse_Expecter added in v1.15.0

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

func (*AbortableResponse_Expecter) Abort added in v1.15.0

Abort is a helper method to define mock.On call

func (*AbortableResponse_Expecter) Render added in v1.15.0

Render is a helper method to define mock.On call

type AbortableResponse_Render_Call added in v1.15.0

type AbortableResponse_Render_Call struct {
	*mock.Call
}

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

func (*AbortableResponse_Render_Call) Return added in v1.15.0

func (*AbortableResponse_Render_Call) Run added in v1.15.0

func (*AbortableResponse_Render_Call) RunAndReturn added in v1.15.0

type Context

type Context struct {
	mock.Mock
}

Context is an autogenerated mock type for the Context type

func NewContext

func NewContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *Context

NewContext creates a new instance of Context. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Context) Context

func (_m *Context) Context() context.Context

Context provides a mock function with no fields

func (*Context) Deadline

func (_m *Context) Deadline() (time.Time, bool)

Deadline provides a mock function with no fields

func (*Context) Done

func (_m *Context) Done() <-chan struct{}

Done provides a mock function with no fields

func (*Context) EXPECT

func (_m *Context) EXPECT() *Context_Expecter

func (*Context) Err

func (_m *Context) Err() error

Err provides a mock function with no fields

func (*Context) Request

func (_m *Context) Request() http.ContextRequest

Request provides a mock function with no fields

func (*Context) Response

func (_m *Context) Response() http.ContextResponse

Response provides a mock function with no fields

func (*Context) Value

func (_m *Context) Value(key interface{}) interface{}

Value provides a mock function with given fields: key

func (*Context) WithContext added in v1.15.0

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

WithContext provides a mock function with given fields: ctx

func (*Context) WithValue

func (_m *Context) WithValue(key interface{}, value interface{})

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

type ContextRequest

type ContextRequest struct {
	mock.Mock
}

ContextRequest is an autogenerated mock type for the ContextRequest type

func NewContextRequest

func NewContextRequest(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContextRequest

NewContextRequest creates a new instance of ContextRequest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ContextRequest) Abort added in v1.15.0

func (_m *ContextRequest) Abort(code ...int)

Abort provides a mock function with given fields: code

func (*ContextRequest) AbortWithStatus

func (_m *ContextRequest) AbortWithStatus(code int)

AbortWithStatus provides a mock function with given fields: code

func (*ContextRequest) AbortWithStatusJson

func (_m *ContextRequest) AbortWithStatusJson(code int, jsonObj interface{})

AbortWithStatusJson provides a mock function with given fields: code, jsonObj

func (*ContextRequest) All

func (_m *ContextRequest) All() map[string]interface{}

All provides a mock function with no fields

func (*ContextRequest) Bind

func (_m *ContextRequest) Bind(obj interface{}) error

Bind provides a mock function with given fields: obj

func (*ContextRequest) BindQuery added in v1.15.0

func (_m *ContextRequest) BindQuery(obj interface{}) error

BindQuery provides a mock function with given fields: obj

func (*ContextRequest) Cookie

func (_m *ContextRequest) Cookie(key string, defaultValue ...string) string

Cookie provides a mock function with given fields: key, defaultValue

func (*ContextRequest) EXPECT

func (*ContextRequest) File

func (_m *ContextRequest) File(name string) (filesystem.File, error)

File provides a mock function with given fields: name

func (*ContextRequest) FullUrl

func (_m *ContextRequest) FullUrl() string

FullUrl provides a mock function with no fields

func (*ContextRequest) HasSession

func (_m *ContextRequest) HasSession() bool

HasSession provides a mock function with no fields

func (*ContextRequest) Header

func (_m *ContextRequest) Header(key string, defaultValue ...string) string

Header provides a mock function with given fields: key, defaultValue

func (*ContextRequest) Headers

func (_m *ContextRequest) Headers() nethttp.Header

Headers provides a mock function with no fields

func (*ContextRequest) Host

func (_m *ContextRequest) Host() string

Host provides a mock function with no fields

func (*ContextRequest) Input

func (_m *ContextRequest) Input(key string, defaultValue ...string) string

Input provides a mock function with given fields: key, defaultValue

func (*ContextRequest) InputArray

func (_m *ContextRequest) InputArray(key string, defaultValue ...[]string) []string

InputArray provides a mock function with given fields: key, defaultValue

func (*ContextRequest) InputBool

func (_m *ContextRequest) InputBool(key string, defaultValue ...bool) bool

InputBool provides a mock function with given fields: key, defaultValue

func (*ContextRequest) InputInt

func (_m *ContextRequest) InputInt(key string, defaultValue ...int) int

InputInt provides a mock function with given fields: key, defaultValue

func (*ContextRequest) InputInt64

func (_m *ContextRequest) InputInt64(key string, defaultValue ...int64) int64

InputInt64 provides a mock function with given fields: key, defaultValue

func (*ContextRequest) InputMap

func (_m *ContextRequest) InputMap(key string, defaultValue ...map[string]string) map[string]string

InputMap provides a mock function with given fields: key, defaultValue

func (*ContextRequest) Ip

func (_m *ContextRequest) Ip() string

Ip provides a mock function with no fields

func (*ContextRequest) Method

func (_m *ContextRequest) Method() string

Method provides a mock function with no fields

func (*ContextRequest) Next

func (_m *ContextRequest) Next()

Next provides a mock function with no fields

func (*ContextRequest) Origin

func (_m *ContextRequest) Origin() *nethttp.Request

Origin provides a mock function with no fields

func (*ContextRequest) Path

func (_m *ContextRequest) Path() string

Path provides a mock function with no fields

func (*ContextRequest) Queries

func (_m *ContextRequest) Queries() map[string]string

Queries provides a mock function with no fields

func (*ContextRequest) Query

func (_m *ContextRequest) Query(key string, defaultValue ...string) string

Query provides a mock function with given fields: key, defaultValue

func (*ContextRequest) QueryArray

func (_m *ContextRequest) QueryArray(key string) []string

QueryArray provides a mock function with given fields: key

func (*ContextRequest) QueryBool

func (_m *ContextRequest) QueryBool(key string, defaultValue ...bool) bool

QueryBool provides a mock function with given fields: key, defaultValue

func (*ContextRequest) QueryInt

func (_m *ContextRequest) QueryInt(key string, defaultValue ...int) int

QueryInt provides a mock function with given fields: key, defaultValue

func (*ContextRequest) QueryInt64

func (_m *ContextRequest) QueryInt64(key string, defaultValue ...int64) int64

QueryInt64 provides a mock function with given fields: key, defaultValue

func (*ContextRequest) QueryMap

func (_m *ContextRequest) QueryMap(key string) map[string]string

QueryMap provides a mock function with given fields: key

func (*ContextRequest) Route

func (_m *ContextRequest) Route(key string) string

Route provides a mock function with given fields: key

func (*ContextRequest) RouteInt

func (_m *ContextRequest) RouteInt(key string) int

RouteInt provides a mock function with given fields: key

func (*ContextRequest) RouteInt64

func (_m *ContextRequest) RouteInt64(key string) int64

RouteInt64 provides a mock function with given fields: key

func (*ContextRequest) Session

func (_m *ContextRequest) Session() session.Session

Session provides a mock function with no fields

func (*ContextRequest) SetSession

func (_m *ContextRequest) SetSession(_a0 session.Session) http.ContextRequest

SetSession provides a mock function with given fields: _a0

func (*ContextRequest) Url

func (_m *ContextRequest) Url() string

Url provides a mock function with no fields

func (*ContextRequest) Validate

func (_m *ContextRequest) Validate(rules map[string]string, options ...validation.Option) (validation.Validator, error)

Validate provides a mock function with given fields: rules, options

func (*ContextRequest) ValidateRequest

func (_m *ContextRequest) ValidateRequest(request http.FormRequest) (validation.Errors, error)

ValidateRequest provides a mock function with given fields: request

type ContextRequest_AbortWithStatusJson_Call

type ContextRequest_AbortWithStatusJson_Call struct {
	*mock.Call
}

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

func (*ContextRequest_AbortWithStatusJson_Call) Return

func (*ContextRequest_AbortWithStatusJson_Call) Run

func (_c *ContextRequest_AbortWithStatusJson_Call) Run(run func(code int, jsonObj interface{})) *ContextRequest_AbortWithStatusJson_Call

func (*ContextRequest_AbortWithStatusJson_Call) RunAndReturn

type ContextRequest_AbortWithStatus_Call

type ContextRequest_AbortWithStatus_Call struct {
	*mock.Call
}

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

func (*ContextRequest_AbortWithStatus_Call) Return

func (*ContextRequest_AbortWithStatus_Call) Run

func (*ContextRequest_AbortWithStatus_Call) RunAndReturn

type ContextRequest_Abort_Call added in v1.15.0

type ContextRequest_Abort_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Abort_Call) Return added in v1.15.0

func (*ContextRequest_Abort_Call) Run added in v1.15.0

func (_c *ContextRequest_Abort_Call) Run(run func(code ...int)) *ContextRequest_Abort_Call

func (*ContextRequest_Abort_Call) RunAndReturn added in v1.15.0

func (_c *ContextRequest_Abort_Call) RunAndReturn(run func(...int)) *ContextRequest_Abort_Call

type ContextRequest_All_Call

type ContextRequest_All_Call struct {
	*mock.Call
}

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

func (*ContextRequest_All_Call) Return

func (_c *ContextRequest_All_Call) Return(_a0 map[string]interface{}) *ContextRequest_All_Call

func (*ContextRequest_All_Call) Run

func (_c *ContextRequest_All_Call) Run(run func()) *ContextRequest_All_Call

func (*ContextRequest_All_Call) RunAndReturn

func (_c *ContextRequest_All_Call) RunAndReturn(run func() map[string]interface{}) *ContextRequest_All_Call

type ContextRequest_BindQuery_Call added in v1.15.0

type ContextRequest_BindQuery_Call struct {
	*mock.Call
}

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

func (*ContextRequest_BindQuery_Call) Return added in v1.15.0

func (*ContextRequest_BindQuery_Call) Run added in v1.15.0

func (_c *ContextRequest_BindQuery_Call) Run(run func(obj interface{})) *ContextRequest_BindQuery_Call

func (*ContextRequest_BindQuery_Call) RunAndReturn added in v1.15.0

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

type ContextRequest_Bind_Call

type ContextRequest_Bind_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Bind_Call) Return

func (*ContextRequest_Bind_Call) Run

func (_c *ContextRequest_Bind_Call) Run(run func(obj interface{})) *ContextRequest_Bind_Call

func (*ContextRequest_Bind_Call) RunAndReturn

func (_c *ContextRequest_Bind_Call) RunAndReturn(run func(interface{}) error) *ContextRequest_Bind_Call
type ContextRequest_Cookie_Call struct {
	*mock.Call
}

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

func (_c *ContextRequest_Cookie_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Cookie_Call

type ContextRequest_Expecter

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

func (*ContextRequest_Expecter) Abort added in v1.15.0

func (_e *ContextRequest_Expecter) Abort(code ...interface{}) *ContextRequest_Abort_Call

Abort is a helper method to define mock.On call

  • code ...int

func (*ContextRequest_Expecter) AbortWithStatus

func (_e *ContextRequest_Expecter) AbortWithStatus(code interface{}) *ContextRequest_AbortWithStatus_Call

AbortWithStatus is a helper method to define mock.On call

  • code int

func (*ContextRequest_Expecter) AbortWithStatusJson

func (_e *ContextRequest_Expecter) AbortWithStatusJson(code interface{}, jsonObj interface{}) *ContextRequest_AbortWithStatusJson_Call

AbortWithStatusJson is a helper method to define mock.On call

  • code int
  • jsonObj interface{}

func (*ContextRequest_Expecter) All

All is a helper method to define mock.On call

func (*ContextRequest_Expecter) Bind

func (_e *ContextRequest_Expecter) Bind(obj interface{}) *ContextRequest_Bind_Call

Bind is a helper method to define mock.On call

  • obj interface{}

func (*ContextRequest_Expecter) BindQuery added in v1.15.0

func (_e *ContextRequest_Expecter) BindQuery(obj interface{}) *ContextRequest_BindQuery_Call

BindQuery is a helper method to define mock.On call

  • obj interface{}

func (*ContextRequest_Expecter) Cookie

func (_e *ContextRequest_Expecter) Cookie(key interface{}, defaultValue ...interface{}) *ContextRequest_Cookie_Call

Cookie is a helper method to define mock.On call

  • key string
  • defaultValue ...string

func (*ContextRequest_Expecter) File

func (_e *ContextRequest_Expecter) File(name interface{}) *ContextRequest_File_Call

File is a helper method to define mock.On call

  • name string

func (*ContextRequest_Expecter) FullUrl

FullUrl is a helper method to define mock.On call

func (*ContextRequest_Expecter) HasSession

HasSession is a helper method to define mock.On call

func (*ContextRequest_Expecter) Header

func (_e *ContextRequest_Expecter) Header(key interface{}, defaultValue ...interface{}) *ContextRequest_Header_Call

Header is a helper method to define mock.On call

  • key string
  • defaultValue ...string

func (*ContextRequest_Expecter) Headers

Headers is a helper method to define mock.On call

func (*ContextRequest_Expecter) Host

Host is a helper method to define mock.On call

func (*ContextRequest_Expecter) Input

func (_e *ContextRequest_Expecter) Input(key interface{}, defaultValue ...interface{}) *ContextRequest_Input_Call

Input is a helper method to define mock.On call

  • key string
  • defaultValue ...string

func (*ContextRequest_Expecter) InputArray

func (_e *ContextRequest_Expecter) InputArray(key interface{}, defaultValue ...interface{}) *ContextRequest_InputArray_Call

InputArray is a helper method to define mock.On call

  • key string
  • defaultValue ...[]string

func (*ContextRequest_Expecter) InputBool

func (_e *ContextRequest_Expecter) InputBool(key interface{}, defaultValue ...interface{}) *ContextRequest_InputBool_Call

InputBool is a helper method to define mock.On call

  • key string
  • defaultValue ...bool

func (*ContextRequest_Expecter) InputInt

func (_e *ContextRequest_Expecter) InputInt(key interface{}, defaultValue ...interface{}) *ContextRequest_InputInt_Call

InputInt is a helper method to define mock.On call

  • key string
  • defaultValue ...int

func (*ContextRequest_Expecter) InputInt64

func (_e *ContextRequest_Expecter) InputInt64(key interface{}, defaultValue ...interface{}) *ContextRequest_InputInt64_Call

InputInt64 is a helper method to define mock.On call

  • key string
  • defaultValue ...int64

func (*ContextRequest_Expecter) InputMap

func (_e *ContextRequest_Expecter) InputMap(key interface{}, defaultValue ...interface{}) *ContextRequest_InputMap_Call

InputMap is a helper method to define mock.On call

  • key string
  • defaultValue ...map[string]string

func (*ContextRequest_Expecter) Ip

Ip is a helper method to define mock.On call

func (*ContextRequest_Expecter) Method

Method is a helper method to define mock.On call

func (*ContextRequest_Expecter) Next

Next is a helper method to define mock.On call

func (*ContextRequest_Expecter) Origin

Origin is a helper method to define mock.On call

func (*ContextRequest_Expecter) Path

Path is a helper method to define mock.On call

func (*ContextRequest_Expecter) Queries

Queries is a helper method to define mock.On call

func (*ContextRequest_Expecter) Query

func (_e *ContextRequest_Expecter) Query(key interface{}, defaultValue ...interface{}) *ContextRequest_Query_Call

Query is a helper method to define mock.On call

  • key string
  • defaultValue ...string

func (*ContextRequest_Expecter) QueryArray

func (_e *ContextRequest_Expecter) QueryArray(key interface{}) *ContextRequest_QueryArray_Call

QueryArray is a helper method to define mock.On call

  • key string

func (*ContextRequest_Expecter) QueryBool

func (_e *ContextRequest_Expecter) QueryBool(key interface{}, defaultValue ...interface{}) *ContextRequest_QueryBool_Call

QueryBool is a helper method to define mock.On call

  • key string
  • defaultValue ...bool

func (*ContextRequest_Expecter) QueryInt

func (_e *ContextRequest_Expecter) QueryInt(key interface{}, defaultValue ...interface{}) *ContextRequest_QueryInt_Call

QueryInt is a helper method to define mock.On call

  • key string
  • defaultValue ...int

func (*ContextRequest_Expecter) QueryInt64

func (_e *ContextRequest_Expecter) QueryInt64(key interface{}, defaultValue ...interface{}) *ContextRequest_QueryInt64_Call

QueryInt64 is a helper method to define mock.On call

  • key string
  • defaultValue ...int64

func (*ContextRequest_Expecter) QueryMap

func (_e *ContextRequest_Expecter) QueryMap(key interface{}) *ContextRequest_QueryMap_Call

QueryMap is a helper method to define mock.On call

  • key string

func (*ContextRequest_Expecter) Route

func (_e *ContextRequest_Expecter) Route(key interface{}) *ContextRequest_Route_Call

Route is a helper method to define mock.On call

  • key string

func (*ContextRequest_Expecter) RouteInt

func (_e *ContextRequest_Expecter) RouteInt(key interface{}) *ContextRequest_RouteInt_Call

RouteInt is a helper method to define mock.On call

  • key string

func (*ContextRequest_Expecter) RouteInt64

func (_e *ContextRequest_Expecter) RouteInt64(key interface{}) *ContextRequest_RouteInt64_Call

RouteInt64 is a helper method to define mock.On call

  • key string

func (*ContextRequest_Expecter) Session

Session is a helper method to define mock.On call

func (*ContextRequest_Expecter) SetSession

func (_e *ContextRequest_Expecter) SetSession(_a0 interface{}) *ContextRequest_SetSession_Call

SetSession is a helper method to define mock.On call

  • _a0 session.Session

func (*ContextRequest_Expecter) Url

Url is a helper method to define mock.On call

func (*ContextRequest_Expecter) Validate

func (_e *ContextRequest_Expecter) Validate(rules interface{}, options ...interface{}) *ContextRequest_Validate_Call

Validate is a helper method to define mock.On call

  • rules map[string]string
  • options ...validation.Option

func (*ContextRequest_Expecter) ValidateRequest

func (_e *ContextRequest_Expecter) ValidateRequest(request interface{}) *ContextRequest_ValidateRequest_Call

ValidateRequest is a helper method to define mock.On call

  • request http.FormRequest

type ContextRequest_File_Call

type ContextRequest_File_Call struct {
	*mock.Call
}

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

func (*ContextRequest_File_Call) Return

func (*ContextRequest_File_Call) Run

func (_c *ContextRequest_File_Call) Run(run func(name string)) *ContextRequest_File_Call

func (*ContextRequest_File_Call) RunAndReturn

type ContextRequest_FullUrl_Call

type ContextRequest_FullUrl_Call struct {
	*mock.Call
}

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

func (*ContextRequest_FullUrl_Call) Return

func (*ContextRequest_FullUrl_Call) Run

func (*ContextRequest_FullUrl_Call) RunAndReturn

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

type ContextRequest_HasSession_Call

type ContextRequest_HasSession_Call struct {
	*mock.Call
}

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

func (*ContextRequest_HasSession_Call) Return

func (*ContextRequest_HasSession_Call) Run

func (*ContextRequest_HasSession_Call) RunAndReturn

type ContextRequest_Header_Call

type ContextRequest_Header_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Header_Call) Return

func (*ContextRequest_Header_Call) Run

func (_c *ContextRequest_Header_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Header_Call

func (*ContextRequest_Header_Call) RunAndReturn

type ContextRequest_Headers_Call

type ContextRequest_Headers_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Headers_Call) Return

func (*ContextRequest_Headers_Call) Run

func (*ContextRequest_Headers_Call) RunAndReturn

type ContextRequest_Host_Call

type ContextRequest_Host_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Host_Call) Return

func (*ContextRequest_Host_Call) Run

func (*ContextRequest_Host_Call) RunAndReturn

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

type ContextRequest_InputArray_Call

type ContextRequest_InputArray_Call struct {
	*mock.Call
}

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

func (*ContextRequest_InputArray_Call) Return

func (*ContextRequest_InputArray_Call) Run

func (_c *ContextRequest_InputArray_Call) Run(run func(key string, defaultValue ...[]string)) *ContextRequest_InputArray_Call

func (*ContextRequest_InputArray_Call) RunAndReturn

type ContextRequest_InputBool_Call

type ContextRequest_InputBool_Call struct {
	*mock.Call
}

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

func (*ContextRequest_InputBool_Call) Return

func (*ContextRequest_InputBool_Call) Run

func (_c *ContextRequest_InputBool_Call) Run(run func(key string, defaultValue ...bool)) *ContextRequest_InputBool_Call

func (*ContextRequest_InputBool_Call) RunAndReturn

type ContextRequest_InputInt64_Call

type ContextRequest_InputInt64_Call struct {
	*mock.Call
}

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

func (*ContextRequest_InputInt64_Call) Return

func (*ContextRequest_InputInt64_Call) Run

func (_c *ContextRequest_InputInt64_Call) Run(run func(key string, defaultValue ...int64)) *ContextRequest_InputInt64_Call

func (*ContextRequest_InputInt64_Call) RunAndReturn

type ContextRequest_InputInt_Call

type ContextRequest_InputInt_Call struct {
	*mock.Call
}

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

func (*ContextRequest_InputInt_Call) Return

func (*ContextRequest_InputInt_Call) Run

func (_c *ContextRequest_InputInt_Call) Run(run func(key string, defaultValue ...int)) *ContextRequest_InputInt_Call

func (*ContextRequest_InputInt_Call) RunAndReturn

func (_c *ContextRequest_InputInt_Call) RunAndReturn(run func(string, ...int) int) *ContextRequest_InputInt_Call

type ContextRequest_InputMap_Call

type ContextRequest_InputMap_Call struct {
	*mock.Call
}

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

func (*ContextRequest_InputMap_Call) Return

func (*ContextRequest_InputMap_Call) Run

func (_c *ContextRequest_InputMap_Call) Run(run func(key string, defaultValue ...map[string]string)) *ContextRequest_InputMap_Call

func (*ContextRequest_InputMap_Call) RunAndReturn

type ContextRequest_Input_Call

type ContextRequest_Input_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Input_Call) Return

func (*ContextRequest_Input_Call) Run

func (_c *ContextRequest_Input_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Input_Call

func (*ContextRequest_Input_Call) RunAndReturn

func (_c *ContextRequest_Input_Call) RunAndReturn(run func(string, ...string) string) *ContextRequest_Input_Call

type ContextRequest_Ip_Call

type ContextRequest_Ip_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Ip_Call) Return

func (*ContextRequest_Ip_Call) Run

func (_c *ContextRequest_Ip_Call) Run(run func()) *ContextRequest_Ip_Call

func (*ContextRequest_Ip_Call) RunAndReturn

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

type ContextRequest_Method_Call

type ContextRequest_Method_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Method_Call) Return

func (*ContextRequest_Method_Call) Run

func (*ContextRequest_Method_Call) RunAndReturn

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

type ContextRequest_Next_Call

type ContextRequest_Next_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Next_Call) Return

func (*ContextRequest_Next_Call) Run

func (*ContextRequest_Next_Call) RunAndReturn

func (_c *ContextRequest_Next_Call) RunAndReturn(run func()) *ContextRequest_Next_Call

type ContextRequest_Origin_Call

type ContextRequest_Origin_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Origin_Call) Return

func (*ContextRequest_Origin_Call) Run

func (*ContextRequest_Origin_Call) RunAndReturn

type ContextRequest_Path_Call

type ContextRequest_Path_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Path_Call) Return

func (*ContextRequest_Path_Call) Run

func (*ContextRequest_Path_Call) RunAndReturn

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

type ContextRequest_Queries_Call

type ContextRequest_Queries_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Queries_Call) Return

func (*ContextRequest_Queries_Call) Run

func (*ContextRequest_Queries_Call) RunAndReturn

func (_c *ContextRequest_Queries_Call) RunAndReturn(run func() map[string]string) *ContextRequest_Queries_Call

type ContextRequest_QueryArray_Call

type ContextRequest_QueryArray_Call struct {
	*mock.Call
}

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

func (*ContextRequest_QueryArray_Call) Return

func (*ContextRequest_QueryArray_Call) Run

func (*ContextRequest_QueryArray_Call) RunAndReturn

type ContextRequest_QueryBool_Call

type ContextRequest_QueryBool_Call struct {
	*mock.Call
}

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

func (*ContextRequest_QueryBool_Call) Return

func (*ContextRequest_QueryBool_Call) Run

func (_c *ContextRequest_QueryBool_Call) Run(run func(key string, defaultValue ...bool)) *ContextRequest_QueryBool_Call

func (*ContextRequest_QueryBool_Call) RunAndReturn

type ContextRequest_QueryInt64_Call

type ContextRequest_QueryInt64_Call struct {
	*mock.Call
}

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

func (*ContextRequest_QueryInt64_Call) Return

func (*ContextRequest_QueryInt64_Call) Run

func (_c *ContextRequest_QueryInt64_Call) Run(run func(key string, defaultValue ...int64)) *ContextRequest_QueryInt64_Call

func (*ContextRequest_QueryInt64_Call) RunAndReturn

type ContextRequest_QueryInt_Call

type ContextRequest_QueryInt_Call struct {
	*mock.Call
}

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

func (*ContextRequest_QueryInt_Call) Return

func (*ContextRequest_QueryInt_Call) Run

func (_c *ContextRequest_QueryInt_Call) Run(run func(key string, defaultValue ...int)) *ContextRequest_QueryInt_Call

func (*ContextRequest_QueryInt_Call) RunAndReturn

func (_c *ContextRequest_QueryInt_Call) RunAndReturn(run func(string, ...int) int) *ContextRequest_QueryInt_Call

type ContextRequest_QueryMap_Call

type ContextRequest_QueryMap_Call struct {
	*mock.Call
}

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

func (*ContextRequest_QueryMap_Call) Return

func (*ContextRequest_QueryMap_Call) Run

func (*ContextRequest_QueryMap_Call) RunAndReturn

type ContextRequest_Query_Call

type ContextRequest_Query_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Query_Call) Return

func (*ContextRequest_Query_Call) Run

func (_c *ContextRequest_Query_Call) Run(run func(key string, defaultValue ...string)) *ContextRequest_Query_Call

func (*ContextRequest_Query_Call) RunAndReturn

func (_c *ContextRequest_Query_Call) RunAndReturn(run func(string, ...string) string) *ContextRequest_Query_Call

type ContextRequest_RouteInt64_Call

type ContextRequest_RouteInt64_Call struct {
	*mock.Call
}

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

func (*ContextRequest_RouteInt64_Call) Return

func (*ContextRequest_RouteInt64_Call) Run

func (*ContextRequest_RouteInt64_Call) RunAndReturn

type ContextRequest_RouteInt_Call

type ContextRequest_RouteInt_Call struct {
	*mock.Call
}

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

func (*ContextRequest_RouteInt_Call) Return

func (*ContextRequest_RouteInt_Call) Run

func (*ContextRequest_RouteInt_Call) RunAndReturn

type ContextRequest_Route_Call

type ContextRequest_Route_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Route_Call) Return

func (*ContextRequest_Route_Call) Run

func (*ContextRequest_Route_Call) RunAndReturn

type ContextRequest_Session_Call

type ContextRequest_Session_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Session_Call) Return

func (*ContextRequest_Session_Call) Run

func (*ContextRequest_Session_Call) RunAndReturn

type ContextRequest_SetSession_Call

type ContextRequest_SetSession_Call struct {
	*mock.Call
}

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

func (*ContextRequest_SetSession_Call) Return

func (*ContextRequest_SetSession_Call) Run

func (*ContextRequest_SetSession_Call) RunAndReturn

type ContextRequest_Url_Call

type ContextRequest_Url_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Url_Call) Return

func (*ContextRequest_Url_Call) Run

func (_c *ContextRequest_Url_Call) Run(run func()) *ContextRequest_Url_Call

func (*ContextRequest_Url_Call) RunAndReturn

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

type ContextRequest_ValidateRequest_Call

type ContextRequest_ValidateRequest_Call struct {
	*mock.Call
}

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

func (*ContextRequest_ValidateRequest_Call) Return

func (*ContextRequest_ValidateRequest_Call) Run

func (*ContextRequest_ValidateRequest_Call) RunAndReturn

type ContextRequest_Validate_Call

type ContextRequest_Validate_Call struct {
	*mock.Call
}

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

func (*ContextRequest_Validate_Call) Return

func (*ContextRequest_Validate_Call) Run

func (_c *ContextRequest_Validate_Call) Run(run func(rules map[string]string, options ...validation.Option)) *ContextRequest_Validate_Call

func (*ContextRequest_Validate_Call) RunAndReturn

type ContextResponse

type ContextResponse struct {
	mock.Mock
}

ContextResponse is an autogenerated mock type for the ContextResponse type

func NewContextResponse

func NewContextResponse(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContextResponse

NewContextResponse creates a new instance of ContextResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ContextResponse) Cookie

func (_m *ContextResponse) Cookie(cookie http.Cookie) http.ContextResponse

Cookie provides a mock function with given fields: cookie

func (*ContextResponse) Data

func (_m *ContextResponse) Data(code int, contentType string, data []byte) http.AbortableResponse

Data provides a mock function with given fields: code, contentType, data

func (*ContextResponse) Download

func (_m *ContextResponse) Download(filepath string, filename string) http.Response

Download provides a mock function with given fields: filepath, filename

func (*ContextResponse) EXPECT

func (*ContextResponse) File

func (_m *ContextResponse) File(filepath string) http.Response

File provides a mock function with given fields: filepath

func (*ContextResponse) Flush

func (_m *ContextResponse) Flush()

Flush provides a mock function with no fields

func (*ContextResponse) Header

func (_m *ContextResponse) Header(key string, value string) http.ContextResponse

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

func (*ContextResponse) Json

func (_m *ContextResponse) Json(code int, obj interface{}) http.AbortableResponse

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

func (*ContextResponse) NoContent

func (_m *ContextResponse) NoContent(code ...int) http.AbortableResponse

NoContent provides a mock function with given fields: code

func (*ContextResponse) Origin

func (_m *ContextResponse) Origin() http.ResponseOrigin

Origin provides a mock function with no fields

func (*ContextResponse) Redirect

func (_m *ContextResponse) Redirect(code int, location string) http.AbortableResponse

Redirect provides a mock function with given fields: code, location

func (*ContextResponse) Status

func (_m *ContextResponse) Status(code int) http.ResponseStatus

Status provides a mock function with given fields: code

func (*ContextResponse) Stream added in v1.15.0

func (_m *ContextResponse) Stream(code int, step func(http.StreamWriter) error) http.Response

Stream provides a mock function with given fields: code, step

func (*ContextResponse) String

func (_m *ContextResponse) String(code int, format string, values ...interface{}) http.AbortableResponse

String provides a mock function with given fields: code, format, values

func (*ContextResponse) Success

func (_m *ContextResponse) Success() http.ResponseStatus

Success provides a mock function with no fields

func (*ContextResponse) View

func (_m *ContextResponse) View() http.ResponseView

View provides a mock function with no fields

func (*ContextResponse) WithoutCookie

func (_m *ContextResponse) WithoutCookie(name string) http.ContextResponse

WithoutCookie provides a mock function with given fields: name

func (*ContextResponse) Writer

func (_m *ContextResponse) Writer() nethttp.ResponseWriter

Writer provides a mock function with no fields

type ContextResponse_Cookie_Call struct {
	*mock.Call
}

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

type ContextResponse_Data_Call

type ContextResponse_Data_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Data_Call) Return

func (*ContextResponse_Data_Call) Run

func (_c *ContextResponse_Data_Call) Run(run func(code int, contentType string, data []byte)) *ContextResponse_Data_Call

func (*ContextResponse_Data_Call) RunAndReturn

type ContextResponse_Download_Call

type ContextResponse_Download_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Download_Call) Return

func (*ContextResponse_Download_Call) Run

func (_c *ContextResponse_Download_Call) Run(run func(filepath string, filename string)) *ContextResponse_Download_Call

func (*ContextResponse_Download_Call) RunAndReturn

type ContextResponse_Expecter

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

func (*ContextResponse_Expecter) Cookie

func (_e *ContextResponse_Expecter) Cookie(cookie interface{}) *ContextResponse_Cookie_Call

Cookie is a helper method to define mock.On call

  • cookie http.Cookie

func (*ContextResponse_Expecter) Data

func (_e *ContextResponse_Expecter) Data(code interface{}, contentType interface{}, data interface{}) *ContextResponse_Data_Call

Data is a helper method to define mock.On call

  • code int
  • contentType string
  • data []byte

func (*ContextResponse_Expecter) Download

func (_e *ContextResponse_Expecter) Download(filepath interface{}, filename interface{}) *ContextResponse_Download_Call

Download is a helper method to define mock.On call

  • filepath string
  • filename string

func (*ContextResponse_Expecter) File

func (_e *ContextResponse_Expecter) File(filepath interface{}) *ContextResponse_File_Call

File is a helper method to define mock.On call

  • filepath string

func (*ContextResponse_Expecter) Flush

Flush is a helper method to define mock.On call

func (*ContextResponse_Expecter) Header

func (_e *ContextResponse_Expecter) Header(key interface{}, value interface{}) *ContextResponse_Header_Call

Header is a helper method to define mock.On call

  • key string
  • value string

func (*ContextResponse_Expecter) Json

func (_e *ContextResponse_Expecter) Json(code interface{}, obj interface{}) *ContextResponse_Json_Call

Json is a helper method to define mock.On call

  • code int
  • obj interface{}

func (*ContextResponse_Expecter) NoContent

func (_e *ContextResponse_Expecter) NoContent(code ...interface{}) *ContextResponse_NoContent_Call

NoContent is a helper method to define mock.On call

  • code ...int

func (*ContextResponse_Expecter) Origin

Origin is a helper method to define mock.On call

func (*ContextResponse_Expecter) Redirect

func (_e *ContextResponse_Expecter) Redirect(code interface{}, location interface{}) *ContextResponse_Redirect_Call

Redirect is a helper method to define mock.On call

  • code int
  • location string

func (*ContextResponse_Expecter) Status

func (_e *ContextResponse_Expecter) Status(code interface{}) *ContextResponse_Status_Call

Status is a helper method to define mock.On call

  • code int

func (*ContextResponse_Expecter) Stream added in v1.15.0

func (_e *ContextResponse_Expecter) Stream(code interface{}, step interface{}) *ContextResponse_Stream_Call

Stream is a helper method to define mock.On call

  • code int
  • step func(http.StreamWriter) error

func (*ContextResponse_Expecter) String

func (_e *ContextResponse_Expecter) String(code interface{}, format interface{}, values ...interface{}) *ContextResponse_String_Call

String is a helper method to define mock.On call

  • code int
  • format string
  • values ...interface{}

func (*ContextResponse_Expecter) Success

Success is a helper method to define mock.On call

func (*ContextResponse_Expecter) View

View is a helper method to define mock.On call

func (*ContextResponse_Expecter) WithoutCookie

func (_e *ContextResponse_Expecter) WithoutCookie(name interface{}) *ContextResponse_WithoutCookie_Call

WithoutCookie is a helper method to define mock.On call

  • name string

func (*ContextResponse_Expecter) Writer

Writer is a helper method to define mock.On call

type ContextResponse_File_Call

type ContextResponse_File_Call struct {
	*mock.Call
}

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

func (*ContextResponse_File_Call) Return

func (*ContextResponse_File_Call) Run

func (_c *ContextResponse_File_Call) Run(run func(filepath string)) *ContextResponse_File_Call

func (*ContextResponse_File_Call) RunAndReturn

type ContextResponse_Flush_Call

type ContextResponse_Flush_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Flush_Call) Return

func (*ContextResponse_Flush_Call) Run

func (*ContextResponse_Flush_Call) RunAndReturn

func (_c *ContextResponse_Flush_Call) RunAndReturn(run func()) *ContextResponse_Flush_Call

type ContextResponse_Header_Call

type ContextResponse_Header_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Header_Call) Return

func (*ContextResponse_Header_Call) Run

func (*ContextResponse_Header_Call) RunAndReturn

type ContextResponse_Json_Call

type ContextResponse_Json_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Json_Call) Return

func (*ContextResponse_Json_Call) Run

func (_c *ContextResponse_Json_Call) Run(run func(code int, obj interface{})) *ContextResponse_Json_Call

func (*ContextResponse_Json_Call) RunAndReturn

func (_c *ContextResponse_Json_Call) RunAndReturn(run func(int, interface{}) http.AbortableResponse) *ContextResponse_Json_Call

type ContextResponse_NoContent_Call

type ContextResponse_NoContent_Call struct {
	*mock.Call
}

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

func (*ContextResponse_NoContent_Call) Return

func (*ContextResponse_NoContent_Call) Run

func (*ContextResponse_NoContent_Call) RunAndReturn

type ContextResponse_Origin_Call

type ContextResponse_Origin_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Origin_Call) Return

func (*ContextResponse_Origin_Call) Run

func (*ContextResponse_Origin_Call) RunAndReturn

type ContextResponse_Redirect_Call

type ContextResponse_Redirect_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Redirect_Call) Return

func (*ContextResponse_Redirect_Call) Run

func (_c *ContextResponse_Redirect_Call) Run(run func(code int, location string)) *ContextResponse_Redirect_Call

func (*ContextResponse_Redirect_Call) RunAndReturn

type ContextResponse_Status_Call

type ContextResponse_Status_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Status_Call) Return

func (*ContextResponse_Status_Call) Run

func (*ContextResponse_Status_Call) RunAndReturn

type ContextResponse_Stream_Call added in v1.15.0

type ContextResponse_Stream_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Stream_Call) Return added in v1.15.0

func (*ContextResponse_Stream_Call) Run added in v1.15.0

func (*ContextResponse_Stream_Call) RunAndReturn added in v1.15.0

type ContextResponse_String_Call

type ContextResponse_String_Call struct {
	*mock.Call
}

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

func (*ContextResponse_String_Call) Return

func (*ContextResponse_String_Call) Run

func (_c *ContextResponse_String_Call) Run(run func(code int, format string, values ...interface{})) *ContextResponse_String_Call

func (*ContextResponse_String_Call) RunAndReturn

func (_c *ContextResponse_String_Call) RunAndReturn(run func(int, string, ...interface{}) http.AbortableResponse) *ContextResponse_String_Call

type ContextResponse_Success_Call

type ContextResponse_Success_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Success_Call) Return

func (*ContextResponse_Success_Call) Run

func (*ContextResponse_Success_Call) RunAndReturn

type ContextResponse_View_Call

type ContextResponse_View_Call struct {
	*mock.Call
}

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

func (*ContextResponse_View_Call) Return

func (*ContextResponse_View_Call) Run

func (*ContextResponse_View_Call) RunAndReturn

type ContextResponse_WithoutCookie_Call

type ContextResponse_WithoutCookie_Call struct {
	*mock.Call
}

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

func (*ContextResponse_WithoutCookie_Call) Return

func (*ContextResponse_WithoutCookie_Call) Run

func (*ContextResponse_WithoutCookie_Call) RunAndReturn

type ContextResponse_Writer_Call

type ContextResponse_Writer_Call struct {
	*mock.Call
}

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

func (*ContextResponse_Writer_Call) Return

func (*ContextResponse_Writer_Call) Run

func (*ContextResponse_Writer_Call) RunAndReturn

type Context_Context_Call

type Context_Context_Call struct {
	*mock.Call
}

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

func (*Context_Context_Call) Return

func (*Context_Context_Call) Run

func (_c *Context_Context_Call) Run(run func()) *Context_Context_Call

func (*Context_Context_Call) RunAndReturn

func (_c *Context_Context_Call) RunAndReturn(run func() context.Context) *Context_Context_Call

type Context_Deadline_Call

type Context_Deadline_Call struct {
	*mock.Call
}

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

func (*Context_Deadline_Call) Return

func (_c *Context_Deadline_Call) Return(deadline time.Time, ok bool) *Context_Deadline_Call

func (*Context_Deadline_Call) Run

func (_c *Context_Deadline_Call) Run(run func()) *Context_Deadline_Call

func (*Context_Deadline_Call) RunAndReturn

func (_c *Context_Deadline_Call) RunAndReturn(run func() (time.Time, bool)) *Context_Deadline_Call

type Context_Done_Call

type Context_Done_Call struct {
	*mock.Call
}

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

func (*Context_Done_Call) Return

func (_c *Context_Done_Call) Return(_a0 <-chan struct{}) *Context_Done_Call

func (*Context_Done_Call) Run

func (_c *Context_Done_Call) Run(run func()) *Context_Done_Call

func (*Context_Done_Call) RunAndReturn

func (_c *Context_Done_Call) RunAndReturn(run func() <-chan struct{}) *Context_Done_Call

type Context_Err_Call

type Context_Err_Call struct {
	*mock.Call
}

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

func (*Context_Err_Call) Return

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

func (*Context_Err_Call) Run

func (_c *Context_Err_Call) Run(run func()) *Context_Err_Call

func (*Context_Err_Call) RunAndReturn

func (_c *Context_Err_Call) RunAndReturn(run func() error) *Context_Err_Call

type Context_Expecter

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

func (*Context_Expecter) Context

func (_e *Context_Expecter) Context() *Context_Context_Call

Context is a helper method to define mock.On call

func (*Context_Expecter) Deadline

func (_e *Context_Expecter) Deadline() *Context_Deadline_Call

Deadline is a helper method to define mock.On call

func (*Context_Expecter) Done

func (_e *Context_Expecter) Done() *Context_Done_Call

Done is a helper method to define mock.On call

func (*Context_Expecter) Err

Err is a helper method to define mock.On call

func (*Context_Expecter) Request

func (_e *Context_Expecter) Request() *Context_Request_Call

Request is a helper method to define mock.On call

func (*Context_Expecter) Response

func (_e *Context_Expecter) Response() *Context_Response_Call

Response is a helper method to define mock.On call

func (*Context_Expecter) Value

func (_e *Context_Expecter) Value(key interface{}) *Context_Value_Call

Value is a helper method to define mock.On call

  • key interface{}

func (*Context_Expecter) WithContext added in v1.15.0

func (_e *Context_Expecter) WithContext(ctx interface{}) *Context_WithContext_Call

WithContext is a helper method to define mock.On call

  • ctx context.Context

func (*Context_Expecter) WithValue

func (_e *Context_Expecter) WithValue(key interface{}, value interface{}) *Context_WithValue_Call

WithValue is a helper method to define mock.On call

  • key interface{}
  • value interface{}

type Context_Request_Call

type Context_Request_Call struct {
	*mock.Call
}

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

func (*Context_Request_Call) Return

func (*Context_Request_Call) Run

func (_c *Context_Request_Call) Run(run func()) *Context_Request_Call

func (*Context_Request_Call) RunAndReturn

func (_c *Context_Request_Call) RunAndReturn(run func() http.ContextRequest) *Context_Request_Call

type Context_Response_Call

type Context_Response_Call struct {
	*mock.Call
}

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

func (*Context_Response_Call) Return

func (*Context_Response_Call) Run

func (_c *Context_Response_Call) Run(run func()) *Context_Response_Call

func (*Context_Response_Call) RunAndReturn

func (_c *Context_Response_Call) RunAndReturn(run func() http.ContextResponse) *Context_Response_Call

type Context_Value_Call

type Context_Value_Call struct {
	*mock.Call
}

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

func (*Context_Value_Call) Return

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

func (*Context_Value_Call) Run

func (_c *Context_Value_Call) Run(run func(key interface{})) *Context_Value_Call

func (*Context_Value_Call) RunAndReturn

func (_c *Context_Value_Call) RunAndReturn(run func(interface{}) interface{}) *Context_Value_Call

type Context_WithContext_Call added in v1.15.0

type Context_WithContext_Call struct {
	*mock.Call
}

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

func (*Context_WithContext_Call) Return added in v1.15.0

func (*Context_WithContext_Call) Run added in v1.15.0

func (*Context_WithContext_Call) RunAndReturn added in v1.15.0

type Context_WithValue_Call

type Context_WithValue_Call struct {
	*mock.Call
}

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

func (*Context_WithValue_Call) Return

func (*Context_WithValue_Call) Run

func (_c *Context_WithValue_Call) Run(run func(key interface{}, value interface{})) *Context_WithValue_Call

func (*Context_WithValue_Call) RunAndReturn

func (_c *Context_WithValue_Call) RunAndReturn(run func(interface{}, interface{})) *Context_WithValue_Call

type FormRequest

type FormRequest struct {
	mock.Mock
}

FormRequest is an autogenerated mock type for the FormRequest type

func NewFormRequest

func NewFormRequest(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormRequest

NewFormRequest creates a new instance of FormRequest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FormRequest) Authorize

func (_m *FormRequest) Authorize(ctx http.Context) error

Authorize provides a mock function with given fields: ctx

func (*FormRequest) EXPECT

func (_m *FormRequest) EXPECT() *FormRequest_Expecter

func (*FormRequest) Rules

func (_m *FormRequest) Rules(ctx http.Context) map[string]string

Rules provides a mock function with given fields: ctx

type FormRequestWithAttributes added in v1.15.0

type FormRequestWithAttributes struct {
	mock.Mock
}

FormRequestWithAttributes is an autogenerated mock type for the FormRequestWithAttributes type

func NewFormRequestWithAttributes added in v1.15.0

func NewFormRequestWithAttributes(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormRequestWithAttributes

NewFormRequestWithAttributes creates a new instance of FormRequestWithAttributes. 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 (*FormRequestWithAttributes) Attributes added in v1.15.0

func (_m *FormRequestWithAttributes) Attributes(ctx http.Context) map[string]string

Attributes provides a mock function with given fields: ctx

func (*FormRequestWithAttributes) EXPECT added in v1.15.0

type FormRequestWithAttributes_Attributes_Call added in v1.15.0

type FormRequestWithAttributes_Attributes_Call struct {
	*mock.Call
}

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

func (*FormRequestWithAttributes_Attributes_Call) Return added in v1.15.0

func (*FormRequestWithAttributes_Attributes_Call) Run added in v1.15.0

func (*FormRequestWithAttributes_Attributes_Call) RunAndReturn added in v1.15.0

type FormRequestWithAttributes_Expecter added in v1.15.0

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

func (*FormRequestWithAttributes_Expecter) Attributes added in v1.15.0

Attributes is a helper method to define mock.On call

  • ctx http.Context

type FormRequestWithFilters added in v1.15.0

type FormRequestWithFilters struct {
	mock.Mock
}

FormRequestWithFilters is an autogenerated mock type for the FormRequestWithFilters type

func NewFormRequestWithFilters added in v1.15.0

func NewFormRequestWithFilters(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormRequestWithFilters

NewFormRequestWithFilters creates a new instance of FormRequestWithFilters. 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 (*FormRequestWithFilters) EXPECT added in v1.15.0

func (*FormRequestWithFilters) Filters added in v1.15.0

func (_m *FormRequestWithFilters) Filters(ctx http.Context) map[string]string

Filters provides a mock function with given fields: ctx

type FormRequestWithFilters_Expecter added in v1.15.0

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

func (*FormRequestWithFilters_Expecter) Filters added in v1.15.0

Filters is a helper method to define mock.On call

  • ctx http.Context

type FormRequestWithFilters_Filters_Call added in v1.15.0

type FormRequestWithFilters_Filters_Call struct {
	*mock.Call
}

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

func (*FormRequestWithFilters_Filters_Call) Return added in v1.15.0

func (*FormRequestWithFilters_Filters_Call) Run added in v1.15.0

func (*FormRequestWithFilters_Filters_Call) RunAndReturn added in v1.15.0

type FormRequestWithMessages added in v1.15.0

type FormRequestWithMessages struct {
	mock.Mock
}

FormRequestWithMessages is an autogenerated mock type for the FormRequestWithMessages type

func NewFormRequestWithMessages added in v1.15.0

func NewFormRequestWithMessages(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormRequestWithMessages

NewFormRequestWithMessages creates a new instance of FormRequestWithMessages. 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 (*FormRequestWithMessages) EXPECT added in v1.15.0

func (*FormRequestWithMessages) Messages added in v1.15.0

func (_m *FormRequestWithMessages) Messages(ctx http.Context) map[string]string

Messages provides a mock function with given fields: ctx

type FormRequestWithMessages_Expecter added in v1.15.0

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

func (*FormRequestWithMessages_Expecter) Messages added in v1.15.0

Messages is a helper method to define mock.On call

  • ctx http.Context

type FormRequestWithMessages_Messages_Call added in v1.15.0

type FormRequestWithMessages_Messages_Call struct {
	*mock.Call
}

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

func (*FormRequestWithMessages_Messages_Call) Return added in v1.15.0

func (*FormRequestWithMessages_Messages_Call) Run added in v1.15.0

func (*FormRequestWithMessages_Messages_Call) RunAndReturn added in v1.15.0

type FormRequestWithPrepareForValidation added in v1.15.0

type FormRequestWithPrepareForValidation struct {
	mock.Mock
}

FormRequestWithPrepareForValidation is an autogenerated mock type for the FormRequestWithPrepareForValidation type

func NewFormRequestWithPrepareForValidation added in v1.15.0

func NewFormRequestWithPrepareForValidation(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormRequestWithPrepareForValidation

NewFormRequestWithPrepareForValidation creates a new instance of FormRequestWithPrepareForValidation. 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 (*FormRequestWithPrepareForValidation) EXPECT added in v1.15.0

func (*FormRequestWithPrepareForValidation) PrepareForValidation added in v1.15.0

func (_m *FormRequestWithPrepareForValidation) PrepareForValidation(ctx http.Context, data validation.Data) error

PrepareForValidation provides a mock function with given fields: ctx, data

type FormRequestWithPrepareForValidation_Expecter added in v1.15.0

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

func (*FormRequestWithPrepareForValidation_Expecter) PrepareForValidation added in v1.15.0

func (_e *FormRequestWithPrepareForValidation_Expecter) PrepareForValidation(ctx interface{}, data interface{}) *FormRequestWithPrepareForValidation_PrepareForValidation_Call

PrepareForValidation is a helper method to define mock.On call

  • ctx http.Context
  • data validation.Data

type FormRequestWithPrepareForValidation_PrepareForValidation_Call added in v1.15.0

type FormRequestWithPrepareForValidation_PrepareForValidation_Call struct {
	*mock.Call
}

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

func (*FormRequestWithPrepareForValidation_PrepareForValidation_Call) Return added in v1.15.0

func (*FormRequestWithPrepareForValidation_PrepareForValidation_Call) Run added in v1.15.0

func (*FormRequestWithPrepareForValidation_PrepareForValidation_Call) RunAndReturn added in v1.15.0

type FormRequest_Authorize_Call

type FormRequest_Authorize_Call struct {
	*mock.Call
}

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

func (*FormRequest_Authorize_Call) Return

func (*FormRequest_Authorize_Call) Run

func (*FormRequest_Authorize_Call) RunAndReturn

type FormRequest_Expecter

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

func (*FormRequest_Expecter) Authorize

func (_e *FormRequest_Expecter) Authorize(ctx interface{}) *FormRequest_Authorize_Call

Authorize is a helper method to define mock.On call

  • ctx http.Context

func (*FormRequest_Expecter) Rules

func (_e *FormRequest_Expecter) Rules(ctx interface{}) *FormRequest_Rules_Call

Rules is a helper method to define mock.On call

  • ctx http.Context

type FormRequest_Rules_Call

type FormRequest_Rules_Call struct {
	*mock.Call
}

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

func (*FormRequest_Rules_Call) Return

func (*FormRequest_Rules_Call) Run

func (*FormRequest_Rules_Call) RunAndReturn

func (_c *FormRequest_Rules_Call) RunAndReturn(run func(http.Context) map[string]string) *FormRequest_Rules_Call

type HandlerFunc

type HandlerFunc struct {
	mock.Mock
}

HandlerFunc is an autogenerated mock type for the HandlerFunc type

func NewHandlerFunc

func NewHandlerFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *HandlerFunc

NewHandlerFunc creates a new instance of HandlerFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HandlerFunc) EXPECT

func (_m *HandlerFunc) EXPECT() *HandlerFunc_Expecter

func (*HandlerFunc) Execute

func (_m *HandlerFunc) Execute(_a0 http.Context) http.Response

Execute provides a mock function with given fields: _a0

type HandlerFunc_Execute_Call

type HandlerFunc_Execute_Call struct {
	*mock.Call
}

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

func (*HandlerFunc_Execute_Call) Return

func (*HandlerFunc_Execute_Call) Run

func (*HandlerFunc_Execute_Call) RunAndReturn

type HandlerFunc_Expecter

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

func (*HandlerFunc_Expecter) Execute

func (_e *HandlerFunc_Expecter) Execute(_a0 interface{}) *HandlerFunc_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 http.Context

type Limit

type Limit struct {
	mock.Mock
}

Limit is an autogenerated mock type for the Limit type

func NewLimit

func NewLimit(t interface {
	mock.TestingT
	Cleanup(func())
}) *Limit

NewLimit creates a new instance of Limit. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Limit) By

func (_m *Limit) By(key string) http.Limit

By provides a mock function with given fields: key

func (*Limit) EXPECT

func (_m *Limit) EXPECT() *Limit_Expecter

func (*Limit) Response

func (_m *Limit) Response(_a0 func(http.Context)) http.Limit

Response provides a mock function with given fields: _a0

type Limit_By_Call

type Limit_By_Call struct {
	*mock.Call
}

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

func (*Limit_By_Call) Return

func (_c *Limit_By_Call) Return(_a0 http.Limit) *Limit_By_Call

func (*Limit_By_Call) Run

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

func (*Limit_By_Call) RunAndReturn

func (_c *Limit_By_Call) RunAndReturn(run func(string) http.Limit) *Limit_By_Call

type Limit_Expecter

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

func (*Limit_Expecter) By

func (_e *Limit_Expecter) By(key interface{}) *Limit_By_Call

By is a helper method to define mock.On call

  • key string

func (*Limit_Expecter) Response

func (_e *Limit_Expecter) Response(_a0 interface{}) *Limit_Response_Call

Response is a helper method to define mock.On call

  • _a0 func(http.Context)

type Limit_Response_Call

type Limit_Response_Call struct {
	*mock.Call
}

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

func (*Limit_Response_Call) Return

func (*Limit_Response_Call) Run

func (_c *Limit_Response_Call) Run(run func(_a0 func(http.Context))) *Limit_Response_Call

func (*Limit_Response_Call) RunAndReturn

func (_c *Limit_Response_Call) RunAndReturn(run func(func(http.Context)) http.Limit) *Limit_Response_Call

type Middleware

type Middleware struct {
	mock.Mock
}

Middleware is an autogenerated mock type for the Middleware type

func NewMiddleware

func NewMiddleware(t interface {
	mock.TestingT
	Cleanup(func())
}) *Middleware

NewMiddleware creates a new instance of Middleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Middleware) EXPECT

func (_m *Middleware) EXPECT() *Middleware_Expecter

func (*Middleware) Execute

func (_m *Middleware) Execute(_a0 http.Context)

Execute provides a mock function with given fields: _a0

type Middleware_Execute_Call

type Middleware_Execute_Call struct {
	*mock.Call
}

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

func (*Middleware_Execute_Call) Return

func (*Middleware_Execute_Call) Run

func (*Middleware_Execute_Call) RunAndReturn

func (_c *Middleware_Execute_Call) RunAndReturn(run func(http.Context)) *Middleware_Execute_Call

type Middleware_Expecter

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

func (*Middleware_Expecter) Execute

func (_e *Middleware_Expecter) Execute(_a0 interface{}) *Middleware_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 http.Context

type RateLimiter

type RateLimiter struct {
	mock.Mock
}

RateLimiter is an autogenerated mock type for the RateLimiter type

func NewRateLimiter

func NewRateLimiter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RateLimiter

NewRateLimiter creates a new instance of RateLimiter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RateLimiter) EXPECT

func (_m *RateLimiter) EXPECT() *RateLimiter_Expecter

func (*RateLimiter) For

func (_m *RateLimiter) For(name string, callback func(http.Context) http.Limit)

For provides a mock function with given fields: name, callback

func (*RateLimiter) ForWithLimits

func (_m *RateLimiter) ForWithLimits(name string, callback func(http.Context) []http.Limit)

ForWithLimits provides a mock function with given fields: name, callback

func (*RateLimiter) Limiter

func (_m *RateLimiter) Limiter(name string) func(http.Context) []http.Limit

Limiter provides a mock function with given fields: name

type RateLimiter_Expecter

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

func (*RateLimiter_Expecter) For

func (_e *RateLimiter_Expecter) For(name interface{}, callback interface{}) *RateLimiter_For_Call

For is a helper method to define mock.On call

  • name string
  • callback func(http.Context) http.Limit

func (*RateLimiter_Expecter) ForWithLimits

func (_e *RateLimiter_Expecter) ForWithLimits(name interface{}, callback interface{}) *RateLimiter_ForWithLimits_Call

ForWithLimits is a helper method to define mock.On call

  • name string
  • callback func(http.Context) []http.Limit

func (*RateLimiter_Expecter) Limiter

func (_e *RateLimiter_Expecter) Limiter(name interface{}) *RateLimiter_Limiter_Call

Limiter is a helper method to define mock.On call

  • name string

type RateLimiter_ForWithLimits_Call

type RateLimiter_ForWithLimits_Call struct {
	*mock.Call
}

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

func (*RateLimiter_ForWithLimits_Call) Return

func (*RateLimiter_ForWithLimits_Call) Run

func (_c *RateLimiter_ForWithLimits_Call) Run(run func(name string, callback func(http.Context) []http.Limit)) *RateLimiter_ForWithLimits_Call

func (*RateLimiter_ForWithLimits_Call) RunAndReturn

type RateLimiter_For_Call

type RateLimiter_For_Call struct {
	*mock.Call
}

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

func (*RateLimiter_For_Call) Return

func (*RateLimiter_For_Call) Run

func (_c *RateLimiter_For_Call) Run(run func(name string, callback func(http.Context) http.Limit)) *RateLimiter_For_Call

func (*RateLimiter_For_Call) RunAndReturn

func (_c *RateLimiter_For_Call) RunAndReturn(run func(string, func(http.Context) http.Limit)) *RateLimiter_For_Call

type RateLimiter_Limiter_Call

type RateLimiter_Limiter_Call struct {
	*mock.Call
}

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

func (*RateLimiter_Limiter_Call) Return

func (*RateLimiter_Limiter_Call) Run

func (_c *RateLimiter_Limiter_Call) Run(run func(name string)) *RateLimiter_Limiter_Call

func (*RateLimiter_Limiter_Call) RunAndReturn

func (_c *RateLimiter_Limiter_Call) RunAndReturn(run func(string) func(http.Context) []http.Limit) *RateLimiter_Limiter_Call

type ResourceController

type ResourceController struct {
	mock.Mock
}

ResourceController is an autogenerated mock type for the ResourceController type

func NewResourceController

func NewResourceController(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceController

NewResourceController creates a new instance of ResourceController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ResourceController) Destroy

func (_m *ResourceController) Destroy(_a0 http.Context) http.Response

Destroy provides a mock function with given fields: _a0

func (*ResourceController) EXPECT

func (*ResourceController) Index

func (_m *ResourceController) Index(_a0 http.Context) http.Response

Index provides a mock function with given fields: _a0

func (*ResourceController) Show

Show provides a mock function with given fields: _a0

func (*ResourceController) Store

func (_m *ResourceController) Store(_a0 http.Context) http.Response

Store provides a mock function with given fields: _a0

func (*ResourceController) Update

func (_m *ResourceController) Update(_a0 http.Context) http.Response

Update provides a mock function with given fields: _a0

type ResourceController_Destroy_Call

type ResourceController_Destroy_Call struct {
	*mock.Call
}

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

func (*ResourceController_Destroy_Call) Return

func (*ResourceController_Destroy_Call) Run

func (*ResourceController_Destroy_Call) RunAndReturn

type ResourceController_Expecter

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

func (*ResourceController_Expecter) Destroy

func (_e *ResourceController_Expecter) Destroy(_a0 interface{}) *ResourceController_Destroy_Call

Destroy is a helper method to define mock.On call

  • _a0 http.Context

func (*ResourceController_Expecter) Index

func (_e *ResourceController_Expecter) Index(_a0 interface{}) *ResourceController_Index_Call

Index is a helper method to define mock.On call

  • _a0 http.Context

func (*ResourceController_Expecter) Show

func (_e *ResourceController_Expecter) Show(_a0 interface{}) *ResourceController_Show_Call

Show is a helper method to define mock.On call

  • _a0 http.Context

func (*ResourceController_Expecter) Store

func (_e *ResourceController_Expecter) Store(_a0 interface{}) *ResourceController_Store_Call

Store is a helper method to define mock.On call

  • _a0 http.Context

func (*ResourceController_Expecter) Update

func (_e *ResourceController_Expecter) Update(_a0 interface{}) *ResourceController_Update_Call

Update is a helper method to define mock.On call

  • _a0 http.Context

type ResourceController_Index_Call

type ResourceController_Index_Call struct {
	*mock.Call
}

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

func (*ResourceController_Index_Call) Return

func (*ResourceController_Index_Call) Run

func (*ResourceController_Index_Call) RunAndReturn

type ResourceController_Show_Call

type ResourceController_Show_Call struct {
	*mock.Call
}

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

func (*ResourceController_Show_Call) Return

func (*ResourceController_Show_Call) Run

func (*ResourceController_Show_Call) RunAndReturn

type ResourceController_Store_Call

type ResourceController_Store_Call struct {
	*mock.Call
}

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

func (*ResourceController_Store_Call) Return

func (*ResourceController_Store_Call) Run

func (*ResourceController_Store_Call) RunAndReturn

type ResourceController_Update_Call

type ResourceController_Update_Call struct {
	*mock.Call
}

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

func (*ResourceController_Update_Call) Return

func (*ResourceController_Update_Call) Run

func (*ResourceController_Update_Call) RunAndReturn

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

func (_m *Response) EXPECT() *Response_Expecter

func (*Response) Render

func (_m *Response) Render() error

Render provides a mock function with no fields

type ResponseOrigin

type ResponseOrigin struct {
	mock.Mock
}

ResponseOrigin is an autogenerated mock type for the ResponseOrigin type

func NewResponseOrigin

func NewResponseOrigin(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResponseOrigin

NewResponseOrigin creates a new instance of ResponseOrigin. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ResponseOrigin) Body

func (_m *ResponseOrigin) Body() *bytes.Buffer

Body provides a mock function with no fields

func (*ResponseOrigin) EXPECT

func (*ResponseOrigin) Header

func (_m *ResponseOrigin) Header() nethttp.Header

Header provides a mock function with no fields

func (*ResponseOrigin) Size

func (_m *ResponseOrigin) Size() int

Size provides a mock function with no fields

func (*ResponseOrigin) Status

func (_m *ResponseOrigin) Status() int

Status provides a mock function with no fields

type ResponseOrigin_Body_Call

type ResponseOrigin_Body_Call struct {
	*mock.Call
}

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

func (*ResponseOrigin_Body_Call) Return

func (*ResponseOrigin_Body_Call) Run

func (*ResponseOrigin_Body_Call) RunAndReturn

func (_c *ResponseOrigin_Body_Call) RunAndReturn(run func() *bytes.Buffer) *ResponseOrigin_Body_Call

type ResponseOrigin_Expecter

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

func (*ResponseOrigin_Expecter) Body

Body is a helper method to define mock.On call

func (*ResponseOrigin_Expecter) Header

Header is a helper method to define mock.On call

func (*ResponseOrigin_Expecter) Size

Size is a helper method to define mock.On call

func (*ResponseOrigin_Expecter) Status

Status is a helper method to define mock.On call

type ResponseOrigin_Header_Call

type ResponseOrigin_Header_Call struct {
	*mock.Call
}

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

func (*ResponseOrigin_Header_Call) Return

func (*ResponseOrigin_Header_Call) Run

func (*ResponseOrigin_Header_Call) RunAndReturn

type ResponseOrigin_Size_Call

type ResponseOrigin_Size_Call struct {
	*mock.Call
}

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

func (*ResponseOrigin_Size_Call) Return

func (*ResponseOrigin_Size_Call) Run

func (*ResponseOrigin_Size_Call) RunAndReturn

func (_c *ResponseOrigin_Size_Call) RunAndReturn(run func() int) *ResponseOrigin_Size_Call

type ResponseOrigin_Status_Call

type ResponseOrigin_Status_Call struct {
	*mock.Call
}

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

func (*ResponseOrigin_Status_Call) Return

func (*ResponseOrigin_Status_Call) Run

func (*ResponseOrigin_Status_Call) RunAndReturn

func (_c *ResponseOrigin_Status_Call) RunAndReturn(run func() int) *ResponseOrigin_Status_Call

type ResponseStatus

type ResponseStatus struct {
	mock.Mock
}

ResponseStatus is an autogenerated mock type for the ResponseStatus type

func NewResponseStatus

func NewResponseStatus(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResponseStatus

NewResponseStatus creates a new instance of ResponseStatus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ResponseStatus) Data

func (_m *ResponseStatus) Data(contentType string, data []byte) http.AbortableResponse

Data provides a mock function with given fields: contentType, data

func (*ResponseStatus) EXPECT

func (*ResponseStatus) Json

func (_m *ResponseStatus) Json(obj interface{}) http.AbortableResponse

Json provides a mock function with given fields: obj

func (*ResponseStatus) Stream added in v1.15.0

func (_m *ResponseStatus) Stream(step func(http.StreamWriter) error) http.Response

Stream provides a mock function with given fields: step

func (*ResponseStatus) String

func (_m *ResponseStatus) String(format string, values ...interface{}) http.AbortableResponse

String provides a mock function with given fields: format, values

type ResponseStatus_Data_Call

type ResponseStatus_Data_Call struct {
	*mock.Call
}

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

func (*ResponseStatus_Data_Call) Return

func (*ResponseStatus_Data_Call) Run

func (_c *ResponseStatus_Data_Call) Run(run func(contentType string, data []byte)) *ResponseStatus_Data_Call

func (*ResponseStatus_Data_Call) RunAndReturn

type ResponseStatus_Expecter

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

func (*ResponseStatus_Expecter) Data

func (_e *ResponseStatus_Expecter) Data(contentType interface{}, data interface{}) *ResponseStatus_Data_Call

Data is a helper method to define mock.On call

  • contentType string
  • data []byte

func (*ResponseStatus_Expecter) Json

func (_e *ResponseStatus_Expecter) Json(obj interface{}) *ResponseStatus_Json_Call

Json is a helper method to define mock.On call

  • obj interface{}

func (*ResponseStatus_Expecter) Stream added in v1.15.0

func (_e *ResponseStatus_Expecter) Stream(step interface{}) *ResponseStatus_Stream_Call

Stream is a helper method to define mock.On call

  • step func(http.StreamWriter) error

func (*ResponseStatus_Expecter) String

func (_e *ResponseStatus_Expecter) String(format interface{}, values ...interface{}) *ResponseStatus_String_Call

String is a helper method to define mock.On call

  • format string
  • values ...interface{}

type ResponseStatus_Json_Call

type ResponseStatus_Json_Call struct {
	*mock.Call
}

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

func (*ResponseStatus_Json_Call) Return

func (*ResponseStatus_Json_Call) Run

func (_c *ResponseStatus_Json_Call) Run(run func(obj interface{})) *ResponseStatus_Json_Call

func (*ResponseStatus_Json_Call) RunAndReturn

func (_c *ResponseStatus_Json_Call) RunAndReturn(run func(interface{}) http.AbortableResponse) *ResponseStatus_Json_Call

type ResponseStatus_Stream_Call added in v1.15.0

type ResponseStatus_Stream_Call struct {
	*mock.Call
}

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

func (*ResponseStatus_Stream_Call) Return added in v1.15.0

func (*ResponseStatus_Stream_Call) Run added in v1.15.0

func (*ResponseStatus_Stream_Call) RunAndReturn added in v1.15.0

type ResponseStatus_String_Call

type ResponseStatus_String_Call struct {
	*mock.Call
}

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

func (*ResponseStatus_String_Call) Return

func (*ResponseStatus_String_Call) Run

func (_c *ResponseStatus_String_Call) Run(run func(format string, values ...interface{})) *ResponseStatus_String_Call

func (*ResponseStatus_String_Call) RunAndReturn

func (_c *ResponseStatus_String_Call) RunAndReturn(run func(string, ...interface{}) http.AbortableResponse) *ResponseStatus_String_Call

type ResponseSuccess

type ResponseSuccess struct {
	mock.Mock
}

ResponseSuccess is an autogenerated mock type for the ResponseSuccess type

func NewResponseSuccess

func NewResponseSuccess(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResponseSuccess

NewResponseSuccess creates a new instance of ResponseSuccess. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ResponseSuccess) Data

func (_m *ResponseSuccess) Data(contentType string, data []byte) http.Response

Data provides a mock function with given fields: contentType, data

func (*ResponseSuccess) EXPECT

func (*ResponseSuccess) Json

func (_m *ResponseSuccess) Json(obj interface{}) http.Response

Json provides a mock function with given fields: obj

func (*ResponseSuccess) String

func (_m *ResponseSuccess) String(format string, values ...interface{}) http.Response

String provides a mock function with given fields: format, values

type ResponseSuccess_Data_Call

type ResponseSuccess_Data_Call struct {
	*mock.Call
}

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

func (*ResponseSuccess_Data_Call) Return

func (*ResponseSuccess_Data_Call) Run

func (_c *ResponseSuccess_Data_Call) Run(run func(contentType string, data []byte)) *ResponseSuccess_Data_Call

func (*ResponseSuccess_Data_Call) RunAndReturn

type ResponseSuccess_Expecter

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

func (*ResponseSuccess_Expecter) Data

func (_e *ResponseSuccess_Expecter) Data(contentType interface{}, data interface{}) *ResponseSuccess_Data_Call

Data is a helper method to define mock.On call

  • contentType string
  • data []byte

func (*ResponseSuccess_Expecter) Json

func (_e *ResponseSuccess_Expecter) Json(obj interface{}) *ResponseSuccess_Json_Call

Json is a helper method to define mock.On call

  • obj interface{}

func (*ResponseSuccess_Expecter) String

func (_e *ResponseSuccess_Expecter) String(format interface{}, values ...interface{}) *ResponseSuccess_String_Call

String is a helper method to define mock.On call

  • format string
  • values ...interface{}

type ResponseSuccess_Json_Call

type ResponseSuccess_Json_Call struct {
	*mock.Call
}

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

func (*ResponseSuccess_Json_Call) Return

func (*ResponseSuccess_Json_Call) Run

func (_c *ResponseSuccess_Json_Call) Run(run func(obj interface{})) *ResponseSuccess_Json_Call

func (*ResponseSuccess_Json_Call) RunAndReturn

func (_c *ResponseSuccess_Json_Call) RunAndReturn(run func(interface{}) http.Response) *ResponseSuccess_Json_Call

type ResponseSuccess_String_Call

type ResponseSuccess_String_Call struct {
	*mock.Call
}

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

func (*ResponseSuccess_String_Call) Return

func (*ResponseSuccess_String_Call) Run

func (_c *ResponseSuccess_String_Call) Run(run func(format string, values ...interface{})) *ResponseSuccess_String_Call

func (*ResponseSuccess_String_Call) RunAndReturn

func (_c *ResponseSuccess_String_Call) RunAndReturn(run func(string, ...interface{}) http.Response) *ResponseSuccess_String_Call

type ResponseView

type ResponseView struct {
	mock.Mock
}

ResponseView is an autogenerated mock type for the ResponseView type

func NewResponseView

func NewResponseView(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResponseView

NewResponseView creates a new instance of ResponseView. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ResponseView) EXPECT

func (_m *ResponseView) EXPECT() *ResponseView_Expecter

func (*ResponseView) First

func (_m *ResponseView) First(views []string, data ...interface{}) http.Response

First provides a mock function with given fields: views, data

func (*ResponseView) Make

func (_m *ResponseView) Make(view string, data ...interface{}) http.Response

Make provides a mock function with given fields: view, data

type ResponseView_Expecter

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

func (*ResponseView_Expecter) First

func (_e *ResponseView_Expecter) First(views interface{}, data ...interface{}) *ResponseView_First_Call

First is a helper method to define mock.On call

  • views []string
  • data ...interface{}

func (*ResponseView_Expecter) Make

func (_e *ResponseView_Expecter) Make(view interface{}, data ...interface{}) *ResponseView_Make_Call

Make is a helper method to define mock.On call

  • view string
  • data ...interface{}

type ResponseView_First_Call

type ResponseView_First_Call struct {
	*mock.Call
}

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

func (*ResponseView_First_Call) Return

func (*ResponseView_First_Call) Run

func (_c *ResponseView_First_Call) Run(run func(views []string, data ...interface{})) *ResponseView_First_Call

func (*ResponseView_First_Call) RunAndReturn

func (_c *ResponseView_First_Call) RunAndReturn(run func([]string, ...interface{}) http.Response) *ResponseView_First_Call

type ResponseView_Make_Call

type ResponseView_Make_Call struct {
	*mock.Call
}

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

func (*ResponseView_Make_Call) Return

func (*ResponseView_Make_Call) Run

func (_c *ResponseView_Make_Call) Run(run func(view string, data ...interface{})) *ResponseView_Make_Call

func (*ResponseView_Make_Call) RunAndReturn

func (_c *ResponseView_Make_Call) RunAndReturn(run func(string, ...interface{}) http.Response) *ResponseView_Make_Call

type Response_Expecter

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

func (*Response_Expecter) Render

Render is a helper method to define mock.On call

type Response_Render_Call

type Response_Render_Call struct {
	*mock.Call
}

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

func (*Response_Render_Call) Return

func (*Response_Render_Call) Run

func (_c *Response_Render_Call) Run(run func()) *Response_Render_Call

func (*Response_Render_Call) RunAndReturn

func (_c *Response_Render_Call) RunAndReturn(run func() error) *Response_Render_Call

type Store added in v1.15.5

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore added in v1.15.5

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. 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 (*Store) Burst added in v1.15.5

func (_m *Store) Burst(ctx context.Context, key string, tokens uint64) error

Burst provides a mock function with given fields: ctx, key, tokens

func (*Store) EXPECT added in v1.15.5

func (_m *Store) EXPECT() *Store_Expecter

func (*Store) Get added in v1.15.5

func (_m *Store) Get(ctx context.Context, key string) (uint64, uint64, error)

Get provides a mock function with given fields: ctx, key

func (*Store) Set added in v1.15.5

func (_m *Store) Set(ctx context.Context, key string, tokens uint64, interval time.Duration) error

Set provides a mock function with given fields: ctx, key, tokens, interval

func (*Store) Take added in v1.15.5

func (_m *Store) Take(ctx context.Context, key string) (uint64, uint64, uint64, bool, error)

Take provides a mock function with given fields: ctx, key

type Store_Burst_Call added in v1.15.5

type Store_Burst_Call struct {
	*mock.Call
}

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

func (*Store_Burst_Call) Return added in v1.15.5

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

func (*Store_Burst_Call) Run added in v1.15.5

func (_c *Store_Burst_Call) Run(run func(ctx context.Context, key string, tokens uint64)) *Store_Burst_Call

func (*Store_Burst_Call) RunAndReturn added in v1.15.5

func (_c *Store_Burst_Call) RunAndReturn(run func(context.Context, string, uint64) error) *Store_Burst_Call

type Store_Expecter added in v1.15.5

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

func (*Store_Expecter) Burst added in v1.15.5

func (_e *Store_Expecter) Burst(ctx interface{}, key interface{}, tokens interface{}) *Store_Burst_Call

Burst is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • tokens uint64

func (*Store_Expecter) Get added in v1.15.5

func (_e *Store_Expecter) Get(ctx interface{}, key interface{}) *Store_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*Store_Expecter) Set added in v1.15.5

func (_e *Store_Expecter) Set(ctx interface{}, key interface{}, tokens interface{}, interval interface{}) *Store_Set_Call

Set is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • tokens uint64
  • interval time.Duration

func (*Store_Expecter) Take added in v1.15.5

func (_e *Store_Expecter) Take(ctx interface{}, key interface{}) *Store_Take_Call

Take is a helper method to define mock.On call

  • ctx context.Context
  • key string

type Store_Get_Call added in v1.15.5

type Store_Get_Call struct {
	*mock.Call
}

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

func (*Store_Get_Call) Return added in v1.15.5

func (_c *Store_Get_Call) Return(tokens uint64, remaining uint64, err error) *Store_Get_Call

func (*Store_Get_Call) Run added in v1.15.5

func (_c *Store_Get_Call) Run(run func(ctx context.Context, key string)) *Store_Get_Call

func (*Store_Get_Call) RunAndReturn added in v1.15.5

func (_c *Store_Get_Call) RunAndReturn(run func(context.Context, string) (uint64, uint64, error)) *Store_Get_Call

type Store_Set_Call added in v1.15.5

type Store_Set_Call struct {
	*mock.Call
}

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

func (*Store_Set_Call) Return added in v1.15.5

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

func (*Store_Set_Call) Run added in v1.15.5

func (_c *Store_Set_Call) Run(run func(ctx context.Context, key string, tokens uint64, interval time.Duration)) *Store_Set_Call

func (*Store_Set_Call) RunAndReturn added in v1.15.5

func (_c *Store_Set_Call) RunAndReturn(run func(context.Context, string, uint64, time.Duration) error) *Store_Set_Call

type Store_Take_Call added in v1.15.5

type Store_Take_Call struct {
	*mock.Call
}

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

func (*Store_Take_Call) Return added in v1.15.5

func (_c *Store_Take_Call) Return(tokens uint64, remaining uint64, reset uint64, ok bool, err error) *Store_Take_Call

func (*Store_Take_Call) Run added in v1.15.5

func (_c *Store_Take_Call) Run(run func(ctx context.Context, key string)) *Store_Take_Call

func (*Store_Take_Call) RunAndReturn added in v1.15.5

func (_c *Store_Take_Call) RunAndReturn(run func(context.Context, string) (uint64, uint64, uint64, bool, error)) *Store_Take_Call

type StreamWriter added in v1.15.0

type StreamWriter struct {
	mock.Mock
}

StreamWriter is an autogenerated mock type for the StreamWriter type

func NewStreamWriter added in v1.15.0

func NewStreamWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *StreamWriter

NewStreamWriter creates a new instance of StreamWriter. 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 (*StreamWriter) EXPECT added in v1.15.0

func (_m *StreamWriter) EXPECT() *StreamWriter_Expecter

func (*StreamWriter) Flush added in v1.15.0

func (_m *StreamWriter) Flush() error

Flush provides a mock function with no fields

func (*StreamWriter) Write added in v1.15.0

func (_m *StreamWriter) Write(data []byte) (int, error)

Write provides a mock function with given fields: data

func (*StreamWriter) WriteString added in v1.15.0

func (_m *StreamWriter) WriteString(data string) (int, error)

WriteString provides a mock function with given fields: data

type StreamWriter_Expecter added in v1.15.0

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

func (*StreamWriter_Expecter) Flush added in v1.15.0

Flush is a helper method to define mock.On call

func (*StreamWriter_Expecter) Write added in v1.15.0

func (_e *StreamWriter_Expecter) Write(data interface{}) *StreamWriter_Write_Call

Write is a helper method to define mock.On call

  • data []byte

func (*StreamWriter_Expecter) WriteString added in v1.15.0

func (_e *StreamWriter_Expecter) WriteString(data interface{}) *StreamWriter_WriteString_Call

WriteString is a helper method to define mock.On call

  • data string

type StreamWriter_Flush_Call added in v1.15.0

type StreamWriter_Flush_Call struct {
	*mock.Call
}

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

func (*StreamWriter_Flush_Call) Return added in v1.15.0

func (*StreamWriter_Flush_Call) Run added in v1.15.0

func (_c *StreamWriter_Flush_Call) Run(run func()) *StreamWriter_Flush_Call

func (*StreamWriter_Flush_Call) RunAndReturn added in v1.15.0

func (_c *StreamWriter_Flush_Call) RunAndReturn(run func() error) *StreamWriter_Flush_Call

type StreamWriter_WriteString_Call added in v1.15.0

type StreamWriter_WriteString_Call struct {
	*mock.Call
}

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

func (*StreamWriter_WriteString_Call) Return added in v1.15.0

func (*StreamWriter_WriteString_Call) Run added in v1.15.0

func (*StreamWriter_WriteString_Call) RunAndReturn added in v1.15.0

type StreamWriter_Write_Call added in v1.15.0

type StreamWriter_Write_Call struct {
	*mock.Call
}

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

func (*StreamWriter_Write_Call) Return added in v1.15.0

func (*StreamWriter_Write_Call) Run added in v1.15.0

func (_c *StreamWriter_Write_Call) Run(run func(data []byte)) *StreamWriter_Write_Call

func (*StreamWriter_Write_Call) RunAndReturn added in v1.15.0

func (_c *StreamWriter_Write_Call) RunAndReturn(run func([]byte) (int, error)) *StreamWriter_Write_Call

type View

type View struct {
	mock.Mock
}

View is an autogenerated mock type for the View type

func NewView

func NewView(t interface {
	mock.TestingT
	Cleanup(func())
}) *View

NewView creates a new instance of View. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*View) EXPECT

func (_m *View) EXPECT() *View_Expecter

func (*View) Exists

func (_m *View) Exists(view string) bool

Exists provides a mock function with given fields: view

func (*View) GetShared

func (_m *View) GetShared() map[string]interface{}

GetShared provides a mock function with no fields

func (*View) Share

func (_m *View) Share(key string, value interface{})

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

func (*View) Shared

func (_m *View) Shared(key string, def ...interface{}) interface{}

Shared provides a mock function with given fields: key, def

type View_Exists_Call

type View_Exists_Call struct {
	*mock.Call
}

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

func (*View_Exists_Call) Return

func (_c *View_Exists_Call) Return(_a0 bool) *View_Exists_Call

func (*View_Exists_Call) Run

func (_c *View_Exists_Call) Run(run func(view string)) *View_Exists_Call

func (*View_Exists_Call) RunAndReturn

func (_c *View_Exists_Call) RunAndReturn(run func(string) bool) *View_Exists_Call

type View_Expecter

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

func (*View_Expecter) Exists

func (_e *View_Expecter) Exists(view interface{}) *View_Exists_Call

Exists is a helper method to define mock.On call

  • view string

func (*View_Expecter) GetShared

func (_e *View_Expecter) GetShared() *View_GetShared_Call

GetShared is a helper method to define mock.On call

func (*View_Expecter) Share

func (_e *View_Expecter) Share(key interface{}, value interface{}) *View_Share_Call

Share is a helper method to define mock.On call

  • key string
  • value interface{}

func (*View_Expecter) Shared

func (_e *View_Expecter) Shared(key interface{}, def ...interface{}) *View_Shared_Call

Shared is a helper method to define mock.On call

  • key string
  • def ...interface{}

type View_GetShared_Call

type View_GetShared_Call struct {
	*mock.Call
}

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

func (*View_GetShared_Call) Return

func (_c *View_GetShared_Call) Return(_a0 map[string]interface{}) *View_GetShared_Call

func (*View_GetShared_Call) Run

func (_c *View_GetShared_Call) Run(run func()) *View_GetShared_Call

func (*View_GetShared_Call) RunAndReturn

func (_c *View_GetShared_Call) RunAndReturn(run func() map[string]interface{}) *View_GetShared_Call

type View_Share_Call

type View_Share_Call struct {
	*mock.Call
}

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

func (*View_Share_Call) Return

func (_c *View_Share_Call) Return() *View_Share_Call

func (*View_Share_Call) Run

func (_c *View_Share_Call) Run(run func(key string, value interface{})) *View_Share_Call

func (*View_Share_Call) RunAndReturn

func (_c *View_Share_Call) RunAndReturn(run func(string, interface{})) *View_Share_Call

type View_Shared_Call

type View_Shared_Call struct {
	*mock.Call
}

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

func (*View_Shared_Call) Return

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

func (*View_Shared_Call) Run

func (_c *View_Shared_Call) Run(run func(key string, def ...interface{})) *View_Shared_Call

func (*View_Shared_Call) RunAndReturn

func (_c *View_Shared_Call) RunAndReturn(run func(string, ...interface{}) interface{}) *View_Shared_Call

Jump to

Keyboard shortcuts

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