Documentation ¶
Index ¶
- type Middleware
- type Middleware_Execute_Call
- type Middleware_Expecter
- type Next
- type Next_Execute_Call
- func (_c *Next_Execute_Call) Return(_a0 interface{}, _a1 error) *Next_Execute_Call
- func (_c *Next_Execute_Call) Run(run func(_a0 context.Context, _a1 interface{})) *Next_Execute_Call
- func (_c *Next_Execute_Call) RunAndReturn(run func(context.Context, interface{}) (interface{}, error)) *Next_Execute_Call
- type Next_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
Middleware is an autogenerated mock type for the Middleware type
func NewMiddleware ¶
func NewMiddleware(t interface { mock.TestingT Cleanup(func()) }) *Middleware
NewMiddleware creates a new instance of Middleware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Middleware) EXPECT ¶
func (_m *Middleware) EXPECT() *Middleware_Expecter
func (*Middleware) Execute ¶
func (_m *Middleware) Execute(nxt Next) Next
Execute provides a mock function with given fields: nxt
type Middleware_Execute_Call ¶
Middleware_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*Middleware_Execute_Call) Return ¶
func (_c *Middleware_Execute_Call) Return(_a0 Next) *Middleware_Execute_Call
func (*Middleware_Execute_Call) Run ¶
func (_c *Middleware_Execute_Call) Run(run func(nxt Next)) *Middleware_Execute_Call
func (*Middleware_Execute_Call) RunAndReturn ¶
func (_c *Middleware_Execute_Call) RunAndReturn(run func(Next) Next) *Middleware_Execute_Call
type Middleware_Expecter ¶
type Middleware_Expecter struct {
// contains filtered or unexported fields
}
func (*Middleware_Expecter) Execute ¶
func (_e *Middleware_Expecter) Execute(nxt interface{}) *Middleware_Execute_Call
Execute is a helper method to define mock.On call
- nxt Next
type Next ¶
Next is an autogenerated mock type for the Next type
func NewNext ¶
NewNext creates a new instance of Next. 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 (*Next) EXPECT ¶
func (_m *Next) EXPECT() *Next_Expecter
type Next_Execute_Call ¶
Next_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*Next_Execute_Call) Return ¶
func (_c *Next_Execute_Call) Return(_a0 interface{}, _a1 error) *Next_Execute_Call
func (*Next_Execute_Call) Run ¶
func (_c *Next_Execute_Call) Run(run func(_a0 context.Context, _a1 interface{})) *Next_Execute_Call
func (*Next_Execute_Call) RunAndReturn ¶
func (_c *Next_Execute_Call) RunAndReturn(run func(context.Context, interface{}) (interface{}, error)) *Next_Execute_Call
type Next_Expecter ¶
type Next_Expecter struct {
// contains filtered or unexported fields
}
func (*Next_Expecter) Execute ¶
func (_e *Next_Expecter) Execute(_a0 interface{}, _a1 interface{}) *Next_Execute_Call
Execute is a helper method to define mock.On call
- _a0 context.Context
- _a1 interface{}