mocks

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionLifeCycleAdvisor added in v0.44.0

type ConnectionLifeCycleAdvisor struct {
	mock.Mock
}

ConnectionLifeCycleAdvisor is an autogenerated mock type for the ConnectionLifeCycleAdvisor type

func NewConnectionLifeCycleAdvisor added in v0.44.0

func NewConnectionLifeCycleAdvisor(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConnectionLifeCycleAdvisor

NewConnectionLifeCycleAdvisor creates a new instance of ConnectionLifeCycleAdvisor. 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 (*ConnectionLifeCycleAdvisor) EXPECT added in v0.44.0

func (*ConnectionLifeCycleAdvisor) ShouldCloseConnection added in v0.44.0

func (_m *ConnectionLifeCycleAdvisor) ShouldCloseConnection(remoteAddr string, headers http.Header) bool

ShouldCloseConnection provides a mock function with given fields: remoteAddr, headers

type ConnectionLifeCycleAdvisor_Expecter added in v0.44.0

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

func (*ConnectionLifeCycleAdvisor_Expecter) ShouldCloseConnection added in v0.44.0

func (_e *ConnectionLifeCycleAdvisor_Expecter) ShouldCloseConnection(remoteAddr interface{}, headers interface{}) *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call

ShouldCloseConnection is a helper method to define mock.On call

  • remoteAddr string
  • headers http.Header

type ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call added in v0.44.0

type ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call struct {
	*mock.Call
}

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

func (*ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call) Return added in v0.44.0

func (*ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call) Run added in v0.44.0

func (*ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call) RunAndReturn added in v0.44.0

type ConnectionPressureManager added in v0.62.1

type ConnectionPressureManager struct {
	mock.Mock
}

ConnectionPressureManager is an autogenerated mock type for the ConnectionPressureManager type

func NewConnectionPressureManager added in v0.62.1

func NewConnectionPressureManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConnectionPressureManager

NewConnectionPressureManager creates a new instance of ConnectionPressureManager. 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 (*ConnectionPressureManager) CloseOldestIdleConnection added in v0.62.1

func (_m *ConnectionPressureManager) CloseOldestIdleConnection() (bool, error)

CloseOldestIdleConnection provides a mock function with no fields

func (*ConnectionPressureManager) ConnState added in v0.62.1

func (_m *ConnectionPressureManager) ConnState(_a0 net.Conn, _a1 http.ConnState)

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

func (*ConnectionPressureManager) EXPECT added in v0.62.1

func (*ConnectionPressureManager) IdleConnectionAvailable added in v0.62.1

func (_m *ConnectionPressureManager) IdleConnectionAvailable() <-chan struct{}

IdleConnectionAvailable provides a mock function with no fields

type ConnectionPressureManager_CloseOldestIdleConnection_Call added in v0.62.1

type ConnectionPressureManager_CloseOldestIdleConnection_Call struct {
	*mock.Call
}

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

func (*ConnectionPressureManager_CloseOldestIdleConnection_Call) Return added in v0.62.1

func (*ConnectionPressureManager_CloseOldestIdleConnection_Call) Run added in v0.62.1

func (*ConnectionPressureManager_CloseOldestIdleConnection_Call) RunAndReturn added in v0.62.1

type ConnectionPressureManager_ConnState_Call added in v0.62.1

type ConnectionPressureManager_ConnState_Call struct {
	*mock.Call
}

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

func (*ConnectionPressureManager_ConnState_Call) Return added in v0.62.1

func (*ConnectionPressureManager_ConnState_Call) Run added in v0.62.1

func (*ConnectionPressureManager_ConnState_Call) RunAndReturn added in v0.62.1

type ConnectionPressureManager_Expecter added in v0.62.1

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

func (*ConnectionPressureManager_Expecter) CloseOldestIdleConnection added in v0.62.1

CloseOldestIdleConnection is a helper method to define mock.On call

func (*ConnectionPressureManager_Expecter) ConnState added in v0.62.1

func (_e *ConnectionPressureManager_Expecter) ConnState(_a0 interface{}, _a1 interface{}) *ConnectionPressureManager_ConnState_Call

ConnState is a helper method to define mock.On call

  • _a0 net.Conn
  • _a1 http.ConnState

func (*ConnectionPressureManager_Expecter) IdleConnectionAvailable added in v0.62.1

IdleConnectionAvailable is a helper method to define mock.On call

type ConnectionPressureManager_IdleConnectionAvailable_Call added in v0.62.1

type ConnectionPressureManager_IdleConnectionAvailable_Call struct {
	*mock.Call
}

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

func (*ConnectionPressureManager_IdleConnectionAvailable_Call) Return added in v0.62.1

func (*ConnectionPressureManager_IdleConnectionAvailable_Call) Run added in v0.62.1

func (*ConnectionPressureManager_IdleConnectionAvailable_Call) RunAndReturn added in v0.62.1

type HandlerWithInput

type HandlerWithInput struct {
	mock.Mock
}

HandlerWithInput is an autogenerated mock type for the HandlerWithInput type

func NewHandlerWithInput

func NewHandlerWithInput(t interface {
	mock.TestingT
	Cleanup(func())
}) *HandlerWithInput

NewHandlerWithInput creates a new instance of HandlerWithInput. 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 (*HandlerWithInput) EXPECT

func (*HandlerWithInput) GetInput

func (_m *HandlerWithInput) GetInput() interface{}

GetInput provides a mock function with no fields

func (*HandlerWithInput) Handle

func (_m *HandlerWithInput) Handle(requestContext context.Context, request *httpserver.Request) (*httpserver.Response, error)

Handle provides a mock function with given fields: requestContext, request

type HandlerWithInput_Expecter

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

func (*HandlerWithInput_Expecter) GetInput

GetInput is a helper method to define mock.On call

func (*HandlerWithInput_Expecter) Handle

func (_e *HandlerWithInput_Expecter) Handle(requestContext interface{}, request interface{}) *HandlerWithInput_Handle_Call

Handle is a helper method to define mock.On call

  • requestContext context.Context
  • request *httpserver.Request

type HandlerWithInput_GetInput_Call

type HandlerWithInput_GetInput_Call struct {
	*mock.Call
}

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

func (*HandlerWithInput_GetInput_Call) Return

func (*HandlerWithInput_GetInput_Call) Run

func (*HandlerWithInput_GetInput_Call) RunAndReturn

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

type HandlerWithInput_Handle_Call

type HandlerWithInput_Handle_Call struct {
	*mock.Call
}

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

func (*HandlerWithInput_Handle_Call) Return

func (*HandlerWithInput_Handle_Call) Run

func (_c *HandlerWithInput_Handle_Call) Run(run func(requestContext context.Context, request *httpserver.Request)) *HandlerWithInput_Handle_Call

func (*HandlerWithInput_Handle_Call) RunAndReturn

type HandlerWithMultipleBindings

type HandlerWithMultipleBindings struct {
	mock.Mock
}

HandlerWithMultipleBindings is an autogenerated mock type for the HandlerWithMultipleBindings type

func NewHandlerWithMultipleBindings

func NewHandlerWithMultipleBindings(t interface {
	mock.TestingT
	Cleanup(func())
}) *HandlerWithMultipleBindings

NewHandlerWithMultipleBindings creates a new instance of HandlerWithMultipleBindings. 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 (*HandlerWithMultipleBindings) EXPECT

func (*HandlerWithMultipleBindings) GetBindings

func (_m *HandlerWithMultipleBindings) GetBindings() []binding.Binding

GetBindings provides a mock function with no fields

func (*HandlerWithMultipleBindings) GetInput

func (_m *HandlerWithMultipleBindings) GetInput() interface{}

GetInput provides a mock function with no fields

func (*HandlerWithMultipleBindings) Handle

func (_m *HandlerWithMultipleBindings) Handle(requestContext context.Context, request *httpserver.Request) (*httpserver.Response, error)

Handle provides a mock function with given fields: requestContext, request

type HandlerWithMultipleBindings_Expecter

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

func (*HandlerWithMultipleBindings_Expecter) GetBindings

GetBindings is a helper method to define mock.On call

func (*HandlerWithMultipleBindings_Expecter) GetInput

GetInput is a helper method to define mock.On call

func (*HandlerWithMultipleBindings_Expecter) Handle

func (_e *HandlerWithMultipleBindings_Expecter) Handle(requestContext interface{}, request interface{}) *HandlerWithMultipleBindings_Handle_Call

Handle is a helper method to define mock.On call

  • requestContext context.Context
  • request *httpserver.Request

type HandlerWithMultipleBindings_GetBindings_Call

type HandlerWithMultipleBindings_GetBindings_Call struct {
	*mock.Call
}

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

func (*HandlerWithMultipleBindings_GetBindings_Call) Return

func (*HandlerWithMultipleBindings_GetBindings_Call) Run

func (*HandlerWithMultipleBindings_GetBindings_Call) RunAndReturn

type HandlerWithMultipleBindings_GetInput_Call

type HandlerWithMultipleBindings_GetInput_Call struct {
	*mock.Call
}

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

func (*HandlerWithMultipleBindings_GetInput_Call) Return

func (*HandlerWithMultipleBindings_GetInput_Call) Run

func (*HandlerWithMultipleBindings_GetInput_Call) RunAndReturn

type HandlerWithMultipleBindings_Handle_Call

type HandlerWithMultipleBindings_Handle_Call struct {
	*mock.Call
}

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

func (*HandlerWithMultipleBindings_Handle_Call) Return

func (*HandlerWithMultipleBindings_Handle_Call) Run

func (*HandlerWithMultipleBindings_Handle_Call) RunAndReturn

type HandlerWithStream

type HandlerWithStream struct {
	mock.Mock
}

HandlerWithStream is an autogenerated mock type for the HandlerWithStream type

func NewHandlerWithStream

func NewHandlerWithStream(t interface {
	mock.TestingT
	Cleanup(func())
}) *HandlerWithStream

NewHandlerWithStream creates a new instance of HandlerWithStream. 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 (*HandlerWithStream) EXPECT

func (*HandlerWithStream) GetInput

func (_m *HandlerWithStream) GetInput() interface{}

GetInput provides a mock function with no fields

func (*HandlerWithStream) Handle

func (_m *HandlerWithStream) Handle(ginContext *gin.Context, requestContext context.Context, request *httpserver.Request) error

Handle provides a mock function with given fields: ginContext, requestContext, request

type HandlerWithStream_Expecter

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

func (*HandlerWithStream_Expecter) GetInput

GetInput is a helper method to define mock.On call

func (*HandlerWithStream_Expecter) Handle

func (_e *HandlerWithStream_Expecter) Handle(ginContext interface{}, requestContext interface{}, request interface{}) *HandlerWithStream_Handle_Call

Handle is a helper method to define mock.On call

  • ginContext *gin.Context
  • requestContext context.Context
  • request *httpserver.Request

type HandlerWithStream_GetInput_Call

type HandlerWithStream_GetInput_Call struct {
	*mock.Call
}

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

func (*HandlerWithStream_GetInput_Call) Return

func (*HandlerWithStream_GetInput_Call) Run

func (*HandlerWithStream_GetInput_Call) RunAndReturn

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

type HandlerWithStream_Handle_Call

type HandlerWithStream_Handle_Call struct {
	*mock.Call
}

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

func (*HandlerWithStream_Handle_Call) Return

func (*HandlerWithStream_Handle_Call) Run

func (_c *HandlerWithStream_Handle_Call) Run(run func(ginContext *gin.Context, requestContext context.Context, request *httpserver.Request)) *HandlerWithStream_Handle_Call

func (*HandlerWithStream_Handle_Call) RunAndReturn

type HandlerWithoutInput

type HandlerWithoutInput struct {
	mock.Mock
}

HandlerWithoutInput is an autogenerated mock type for the HandlerWithoutInput type

func NewHandlerWithoutInput

func NewHandlerWithoutInput(t interface {
	mock.TestingT
	Cleanup(func())
}) *HandlerWithoutInput

NewHandlerWithoutInput creates a new instance of HandlerWithoutInput. 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 (*HandlerWithoutInput) EXPECT

func (*HandlerWithoutInput) Handle

func (_m *HandlerWithoutInput) Handle(requestContext context.Context, request *httpserver.Request) (*httpserver.Response, error)

Handle provides a mock function with given fields: requestContext, request

type HandlerWithoutInput_Expecter

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

func (*HandlerWithoutInput_Expecter) Handle

func (_e *HandlerWithoutInput_Expecter) Handle(requestContext interface{}, request interface{}) *HandlerWithoutInput_Handle_Call

Handle is a helper method to define mock.On call

  • requestContext context.Context
  • request *httpserver.Request

type HandlerWithoutInput_Handle_Call

type HandlerWithoutInput_Handle_Call struct {
	*mock.Call
}

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

func (*HandlerWithoutInput_Handle_Call) Return

func (*HandlerWithoutInput_Handle_Call) Run

func (*HandlerWithoutInput_Handle_Call) RunAndReturn

type NetConn added in v0.62.1

type NetConn struct {
	mock.Mock
}

NetConn is an autogenerated mock type for the NetConn type

func NewNetConn added in v0.62.1

func NewNetConn(t interface {
	mock.TestingT
	Cleanup(func())
}) *NetConn

NewNetConn creates a new instance of NetConn. 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 (*NetConn) Close added in v0.62.1

func (_m *NetConn) Close() error

Close provides a mock function with no fields

func (*NetConn) EXPECT added in v0.62.1

func (_m *NetConn) EXPECT() *NetConn_Expecter

func (*NetConn) LocalAddr added in v0.62.1

func (_m *NetConn) LocalAddr() net.Addr

LocalAddr provides a mock function with no fields

func (*NetConn) Read added in v0.62.1

func (_m *NetConn) Read(b []byte) (int, error)

Read provides a mock function with given fields: b

func (*NetConn) RemoteAddr added in v0.62.1

func (_m *NetConn) RemoteAddr() net.Addr

RemoteAddr provides a mock function with no fields

func (*NetConn) SetDeadline added in v0.62.1

func (_m *NetConn) SetDeadline(t time.Time) error

SetDeadline provides a mock function with given fields: t

func (*NetConn) SetReadDeadline added in v0.62.1

func (_m *NetConn) SetReadDeadline(t time.Time) error

SetReadDeadline provides a mock function with given fields: t

func (*NetConn) SetWriteDeadline added in v0.62.1

func (_m *NetConn) SetWriteDeadline(t time.Time) error

SetWriteDeadline provides a mock function with given fields: t

func (*NetConn) Write added in v0.62.1

func (_m *NetConn) Write(b []byte) (int, error)

Write provides a mock function with given fields: b

type NetConn_Close_Call added in v0.62.1

type NetConn_Close_Call struct {
	*mock.Call
}

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

func (*NetConn_Close_Call) Return added in v0.62.1

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

func (*NetConn_Close_Call) Run added in v0.62.1

func (_c *NetConn_Close_Call) Run(run func()) *NetConn_Close_Call

func (*NetConn_Close_Call) RunAndReturn added in v0.62.1

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

type NetConn_Expecter added in v0.62.1

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

func (*NetConn_Expecter) Close added in v0.62.1

func (_e *NetConn_Expecter) Close() *NetConn_Close_Call

Close is a helper method to define mock.On call

func (*NetConn_Expecter) LocalAddr added in v0.62.1

func (_e *NetConn_Expecter) LocalAddr() *NetConn_LocalAddr_Call

LocalAddr is a helper method to define mock.On call

func (*NetConn_Expecter) Read added in v0.62.1

func (_e *NetConn_Expecter) Read(b interface{}) *NetConn_Read_Call

Read is a helper method to define mock.On call

  • b []byte

func (*NetConn_Expecter) RemoteAddr added in v0.62.1

func (_e *NetConn_Expecter) RemoteAddr() *NetConn_RemoteAddr_Call

RemoteAddr is a helper method to define mock.On call

func (*NetConn_Expecter) SetDeadline added in v0.62.1

func (_e *NetConn_Expecter) SetDeadline(t interface{}) *NetConn_SetDeadline_Call

SetDeadline is a helper method to define mock.On call

  • t time.Time

func (*NetConn_Expecter) SetReadDeadline added in v0.62.1

func (_e *NetConn_Expecter) SetReadDeadline(t interface{}) *NetConn_SetReadDeadline_Call

SetReadDeadline is a helper method to define mock.On call

  • t time.Time

func (*NetConn_Expecter) SetWriteDeadline added in v0.62.1

func (_e *NetConn_Expecter) SetWriteDeadline(t interface{}) *NetConn_SetWriteDeadline_Call

SetWriteDeadline is a helper method to define mock.On call

  • t time.Time

func (*NetConn_Expecter) Write added in v0.62.1

func (_e *NetConn_Expecter) Write(b interface{}) *NetConn_Write_Call

Write is a helper method to define mock.On call

  • b []byte

type NetConn_LocalAddr_Call added in v0.62.1

type NetConn_LocalAddr_Call struct {
	*mock.Call
}

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

func (*NetConn_LocalAddr_Call) Return added in v0.62.1

func (*NetConn_LocalAddr_Call) Run added in v0.62.1

func (_c *NetConn_LocalAddr_Call) Run(run func()) *NetConn_LocalAddr_Call

func (*NetConn_LocalAddr_Call) RunAndReturn added in v0.62.1

func (_c *NetConn_LocalAddr_Call) RunAndReturn(run func() net.Addr) *NetConn_LocalAddr_Call

type NetConn_Read_Call added in v0.62.1

type NetConn_Read_Call struct {
	*mock.Call
}

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

func (*NetConn_Read_Call) Return added in v0.62.1

func (_c *NetConn_Read_Call) Return(n int, err error) *NetConn_Read_Call

func (*NetConn_Read_Call) Run added in v0.62.1

func (_c *NetConn_Read_Call) Run(run func(b []byte)) *NetConn_Read_Call

func (*NetConn_Read_Call) RunAndReturn added in v0.62.1

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

type NetConn_RemoteAddr_Call added in v0.62.1

type NetConn_RemoteAddr_Call struct {
	*mock.Call
}

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

func (*NetConn_RemoteAddr_Call) Return added in v0.62.1

func (*NetConn_RemoteAddr_Call) Run added in v0.62.1

func (_c *NetConn_RemoteAddr_Call) Run(run func()) *NetConn_RemoteAddr_Call

func (*NetConn_RemoteAddr_Call) RunAndReturn added in v0.62.1

func (_c *NetConn_RemoteAddr_Call) RunAndReturn(run func() net.Addr) *NetConn_RemoteAddr_Call

type NetConn_SetDeadline_Call added in v0.62.1

type NetConn_SetDeadline_Call struct {
	*mock.Call
}

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

func (*NetConn_SetDeadline_Call) Return added in v0.62.1

func (*NetConn_SetDeadline_Call) Run added in v0.62.1

func (*NetConn_SetDeadline_Call) RunAndReturn added in v0.62.1

func (_c *NetConn_SetDeadline_Call) RunAndReturn(run func(time.Time) error) *NetConn_SetDeadline_Call

type NetConn_SetReadDeadline_Call added in v0.62.1

type NetConn_SetReadDeadline_Call struct {
	*mock.Call
}

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

func (*NetConn_SetReadDeadline_Call) Return added in v0.62.1

func (*NetConn_SetReadDeadline_Call) Run added in v0.62.1

func (*NetConn_SetReadDeadline_Call) RunAndReturn added in v0.62.1

type NetConn_SetWriteDeadline_Call added in v0.62.1

type NetConn_SetWriteDeadline_Call struct {
	*mock.Call
}

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

func (*NetConn_SetWriteDeadline_Call) Return added in v0.62.1

func (*NetConn_SetWriteDeadline_Call) Run added in v0.62.1

func (*NetConn_SetWriteDeadline_Call) RunAndReturn added in v0.62.1

type NetConn_Write_Call added in v0.62.1

type NetConn_Write_Call struct {
	*mock.Call
}

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

func (*NetConn_Write_Call) Return added in v0.62.1

func (_c *NetConn_Write_Call) Return(n int, err error) *NetConn_Write_Call

func (*NetConn_Write_Call) Run added in v0.62.1

func (_c *NetConn_Write_Call) Run(run func(b []byte)) *NetConn_Write_Call

func (*NetConn_Write_Call) RunAndReturn added in v0.62.1

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

type NetListener added in v0.62.1

type NetListener struct {
	mock.Mock
}

NetListener is an autogenerated mock type for the NetListener type

func NewNetListener added in v0.62.1

func NewNetListener(t interface {
	mock.TestingT
	Cleanup(func())
}) *NetListener

NewNetListener creates a new instance of NetListener. 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 (*NetListener) Accept added in v0.62.1

func (_m *NetListener) Accept() (net.Conn, error)

Accept provides a mock function with no fields

func (*NetListener) Addr added in v0.62.1

func (_m *NetListener) Addr() net.Addr

Addr provides a mock function with no fields

func (*NetListener) Close added in v0.62.1

func (_m *NetListener) Close() error

Close provides a mock function with no fields

func (*NetListener) EXPECT added in v0.62.1

func (_m *NetListener) EXPECT() *NetListener_Expecter

type NetListener_Accept_Call added in v0.62.1

type NetListener_Accept_Call struct {
	*mock.Call
}

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

func (*NetListener_Accept_Call) Return added in v0.62.1

func (*NetListener_Accept_Call) Run added in v0.62.1

func (_c *NetListener_Accept_Call) Run(run func()) *NetListener_Accept_Call

func (*NetListener_Accept_Call) RunAndReturn added in v0.62.1

func (_c *NetListener_Accept_Call) RunAndReturn(run func() (net.Conn, error)) *NetListener_Accept_Call

type NetListener_Addr_Call added in v0.62.1

type NetListener_Addr_Call struct {
	*mock.Call
}

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

func (*NetListener_Addr_Call) Return added in v0.62.1

func (*NetListener_Addr_Call) Run added in v0.62.1

func (_c *NetListener_Addr_Call) Run(run func()) *NetListener_Addr_Call

func (*NetListener_Addr_Call) RunAndReturn added in v0.62.1

func (_c *NetListener_Addr_Call) RunAndReturn(run func() net.Addr) *NetListener_Addr_Call

type NetListener_Close_Call added in v0.62.1

type NetListener_Close_Call struct {
	*mock.Call
}

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

func (*NetListener_Close_Call) Return added in v0.62.1

func (*NetListener_Close_Call) Run added in v0.62.1

func (_c *NetListener_Close_Call) Run(run func()) *NetListener_Close_Call

func (*NetListener_Close_Call) RunAndReturn added in v0.62.1

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

type NetListener_Expecter added in v0.62.1

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

func (*NetListener_Expecter) Accept added in v0.62.1

Accept is a helper method to define mock.On call

func (*NetListener_Expecter) Addr added in v0.62.1

Addr is a helper method to define mock.On call

func (*NetListener_Expecter) Close added in v0.62.1

Close is a helper method to define mock.On call

type ServerMetricRecorder added in v0.62.1

type ServerMetricRecorder struct {
	mock.Mock
}

ServerMetricRecorder is an autogenerated mock type for the ServerMetricRecorder type

func NewServerMetricRecorder added in v0.62.1

func NewServerMetricRecorder(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServerMetricRecorder

NewServerMetricRecorder creates a new instance of ServerMetricRecorder. 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 (*ServerMetricRecorder) EXPECT added in v0.62.1

func (*ServerMetricRecorder) Run added in v0.62.1

Run provides a mock function with given fields: ctx

func (*ServerMetricRecorder) TrackConnectionClosed added in v0.62.1

func (_m *ServerMetricRecorder) TrackConnectionClosed(ctx context.Context)

TrackConnectionClosed provides a mock function with given fields: ctx

func (*ServerMetricRecorder) TrackConnectionOpened added in v0.62.1

func (_m *ServerMetricRecorder) TrackConnectionOpened(ctx context.Context)

TrackConnectionOpened provides a mock function with given fields: ctx

func (*ServerMetricRecorder) TrackRequestCompleted added in v0.62.1

func (_m *ServerMetricRecorder) TrackRequestCompleted(ctx context.Context)

TrackRequestCompleted provides a mock function with given fields: ctx

func (*ServerMetricRecorder) TrackRequestStarted added in v0.62.1

func (_m *ServerMetricRecorder) TrackRequestStarted(ctx context.Context)

TrackRequestStarted provides a mock function with given fields: ctx

type ServerMetricRecorder_Expecter added in v0.62.1

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

func (*ServerMetricRecorder_Expecter) Run added in v0.62.1

Run is a helper method to define mock.On call

  • ctx context.Context

func (*ServerMetricRecorder_Expecter) TrackConnectionClosed added in v0.62.1

func (_e *ServerMetricRecorder_Expecter) TrackConnectionClosed(ctx interface{}) *ServerMetricRecorder_TrackConnectionClosed_Call

TrackConnectionClosed is a helper method to define mock.On call

  • ctx context.Context

func (*ServerMetricRecorder_Expecter) TrackConnectionOpened added in v0.62.1

func (_e *ServerMetricRecorder_Expecter) TrackConnectionOpened(ctx interface{}) *ServerMetricRecorder_TrackConnectionOpened_Call

TrackConnectionOpened is a helper method to define mock.On call

  • ctx context.Context

func (*ServerMetricRecorder_Expecter) TrackRequestCompleted added in v0.62.1

func (_e *ServerMetricRecorder_Expecter) TrackRequestCompleted(ctx interface{}) *ServerMetricRecorder_TrackRequestCompleted_Call

TrackRequestCompleted is a helper method to define mock.On call

  • ctx context.Context

func (*ServerMetricRecorder_Expecter) TrackRequestStarted added in v0.62.1

func (_e *ServerMetricRecorder_Expecter) TrackRequestStarted(ctx interface{}) *ServerMetricRecorder_TrackRequestStarted_Call

TrackRequestStarted is a helper method to define mock.On call

  • ctx context.Context

type ServerMetricRecorder_Run_Call added in v0.62.1

type ServerMetricRecorder_Run_Call struct {
	*mock.Call
}

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

func (*ServerMetricRecorder_Run_Call) Return added in v0.62.1

func (*ServerMetricRecorder_Run_Call) Run added in v0.62.1

func (*ServerMetricRecorder_Run_Call) RunAndReturn added in v0.62.1

type ServerMetricRecorder_TrackConnectionClosed_Call added in v0.62.1

type ServerMetricRecorder_TrackConnectionClosed_Call struct {
	*mock.Call
}

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

func (*ServerMetricRecorder_TrackConnectionClosed_Call) Return added in v0.62.1

func (*ServerMetricRecorder_TrackConnectionClosed_Call) Run added in v0.62.1

func (*ServerMetricRecorder_TrackConnectionClosed_Call) RunAndReturn added in v0.62.1

type ServerMetricRecorder_TrackConnectionOpened_Call added in v0.62.1

type ServerMetricRecorder_TrackConnectionOpened_Call struct {
	*mock.Call
}

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

func (*ServerMetricRecorder_TrackConnectionOpened_Call) Return added in v0.62.1

func (*ServerMetricRecorder_TrackConnectionOpened_Call) Run added in v0.62.1

func (*ServerMetricRecorder_TrackConnectionOpened_Call) RunAndReturn added in v0.62.1

type ServerMetricRecorder_TrackRequestCompleted_Call added in v0.62.1

type ServerMetricRecorder_TrackRequestCompleted_Call struct {
	*mock.Call
}

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

func (*ServerMetricRecorder_TrackRequestCompleted_Call) Return added in v0.62.1

func (*ServerMetricRecorder_TrackRequestCompleted_Call) Run added in v0.62.1

func (*ServerMetricRecorder_TrackRequestCompleted_Call) RunAndReturn added in v0.62.1

type ServerMetricRecorder_TrackRequestStarted_Call added in v0.62.1

type ServerMetricRecorder_TrackRequestStarted_Call struct {
	*mock.Call
}

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

func (*ServerMetricRecorder_TrackRequestStarted_Call) Return added in v0.62.1

func (*ServerMetricRecorder_TrackRequestStarted_Call) Run added in v0.62.1

func (*ServerMetricRecorder_TrackRequestStarted_Call) RunAndReturn added in v0.62.1

Jump to

Keyboard shortcuts

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