middleware

package
v0.0.0-...-c6a5d93 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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(nxt Next) Next

Execute provides a mock function with given fields: nxt

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 (_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

type Next struct {
	mock.Mock
}

Next is an autogenerated mock type for the Next type

func NewNext

func NewNext(t interface {
	mock.TestingT
	Cleanup(func())
}) *Next

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

func (*Next) Execute

func (_m *Next) Execute(_a0 context.Context, _a1 interface{}) (interface{}, error)

Execute provides a mock function with given fields: _a0, _a1

type Next_Execute_Call

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

Jump to

Keyboard shortcuts

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