Documentation
¶
Index ¶
- type ConnectionLifeCycleAdvisor
- type ConnectionLifeCycleAdvisor_Expecter
- type ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call
- func (_c *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call) Return(_a0 bool) *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call
- func (_c *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call) Run(run func(remoteAddr string, headers http.Header)) *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call
- func (_c *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call) RunAndReturn(run func(string, http.Header) bool) *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call
- type ConnectionPressureManager
- func (_m *ConnectionPressureManager) CloseOldestIdleConnection() (bool, error)
- func (_m *ConnectionPressureManager) ConnState(_a0 net.Conn, _a1 http.ConnState)
- func (_m *ConnectionPressureManager) EXPECT() *ConnectionPressureManager_Expecter
- func (_m *ConnectionPressureManager) IdleConnectionAvailable() <-chan struct{}
- type ConnectionPressureManager_CloseOldestIdleConnection_Call
- func (_c *ConnectionPressureManager_CloseOldestIdleConnection_Call) Return(_a0 bool, _a1 error) *ConnectionPressureManager_CloseOldestIdleConnection_Call
- func (_c *ConnectionPressureManager_CloseOldestIdleConnection_Call) Run(run func()) *ConnectionPressureManager_CloseOldestIdleConnection_Call
- func (_c *ConnectionPressureManager_CloseOldestIdleConnection_Call) RunAndReturn(run func() (bool, error)) *ConnectionPressureManager_CloseOldestIdleConnection_Call
- type ConnectionPressureManager_ConnState_Call
- func (_c *ConnectionPressureManager_ConnState_Call) Return() *ConnectionPressureManager_ConnState_Call
- func (_c *ConnectionPressureManager_ConnState_Call) Run(run func(_a0 net.Conn, _a1 http.ConnState)) *ConnectionPressureManager_ConnState_Call
- func (_c *ConnectionPressureManager_ConnState_Call) RunAndReturn(run func(net.Conn, http.ConnState)) *ConnectionPressureManager_ConnState_Call
- type ConnectionPressureManager_Expecter
- func (_e *ConnectionPressureManager_Expecter) CloseOldestIdleConnection() *ConnectionPressureManager_CloseOldestIdleConnection_Call
- func (_e *ConnectionPressureManager_Expecter) ConnState(_a0 interface{}, _a1 interface{}) *ConnectionPressureManager_ConnState_Call
- func (_e *ConnectionPressureManager_Expecter) IdleConnectionAvailable() *ConnectionPressureManager_IdleConnectionAvailable_Call
- type ConnectionPressureManager_IdleConnectionAvailable_Call
- func (_c *ConnectionPressureManager_IdleConnectionAvailable_Call) Return(_a0 <-chan struct{}) *ConnectionPressureManager_IdleConnectionAvailable_Call
- func (_c *ConnectionPressureManager_IdleConnectionAvailable_Call) Run(run func()) *ConnectionPressureManager_IdleConnectionAvailable_Call
- func (_c *ConnectionPressureManager_IdleConnectionAvailable_Call) RunAndReturn(run func() <-chan struct{}) *ConnectionPressureManager_IdleConnectionAvailable_Call
- type HandlerWithInput
- type HandlerWithInput_Expecter
- type HandlerWithInput_GetInput_Call
- type HandlerWithInput_Handle_Call
- func (_c *HandlerWithInput_Handle_Call) Return(response *httpserver.Response, err error) *HandlerWithInput_Handle_Call
- func (_c *HandlerWithInput_Handle_Call) Run(run func(requestContext context.Context, request *httpserver.Request)) *HandlerWithInput_Handle_Call
- func (_c *HandlerWithInput_Handle_Call) RunAndReturn(run func(context.Context, *httpserver.Request) (*httpserver.Response, error)) *HandlerWithInput_Handle_Call
- type HandlerWithMultipleBindings
- func (_m *HandlerWithMultipleBindings) EXPECT() *HandlerWithMultipleBindings_Expecter
- func (_m *HandlerWithMultipleBindings) GetBindings() []binding.Binding
- func (_m *HandlerWithMultipleBindings) GetInput() interface{}
- func (_m *HandlerWithMultipleBindings) Handle(requestContext context.Context, request *httpserver.Request) (*httpserver.Response, error)
- type HandlerWithMultipleBindings_Expecter
- func (_e *HandlerWithMultipleBindings_Expecter) GetBindings() *HandlerWithMultipleBindings_GetBindings_Call
- func (_e *HandlerWithMultipleBindings_Expecter) GetInput() *HandlerWithMultipleBindings_GetInput_Call
- func (_e *HandlerWithMultipleBindings_Expecter) Handle(requestContext interface{}, request interface{}) *HandlerWithMultipleBindings_Handle_Call
- type HandlerWithMultipleBindings_GetBindings_Call
- func (_c *HandlerWithMultipleBindings_GetBindings_Call) Return(_a0 []binding.Binding) *HandlerWithMultipleBindings_GetBindings_Call
- func (_c *HandlerWithMultipleBindings_GetBindings_Call) Run(run func()) *HandlerWithMultipleBindings_GetBindings_Call
- func (_c *HandlerWithMultipleBindings_GetBindings_Call) RunAndReturn(run func() []binding.Binding) *HandlerWithMultipleBindings_GetBindings_Call
- type HandlerWithMultipleBindings_GetInput_Call
- func (_c *HandlerWithMultipleBindings_GetInput_Call) Return(_a0 interface{}) *HandlerWithMultipleBindings_GetInput_Call
- func (_c *HandlerWithMultipleBindings_GetInput_Call) Run(run func()) *HandlerWithMultipleBindings_GetInput_Call
- func (_c *HandlerWithMultipleBindings_GetInput_Call) RunAndReturn(run func() interface{}) *HandlerWithMultipleBindings_GetInput_Call
- type HandlerWithMultipleBindings_Handle_Call
- func (_c *HandlerWithMultipleBindings_Handle_Call) Return(response *httpserver.Response, err error) *HandlerWithMultipleBindings_Handle_Call
- func (_c *HandlerWithMultipleBindings_Handle_Call) Run(run func(requestContext context.Context, request *httpserver.Request)) *HandlerWithMultipleBindings_Handle_Call
- func (_c *HandlerWithMultipleBindings_Handle_Call) RunAndReturn(run func(context.Context, *httpserver.Request) (*httpserver.Response, error)) *HandlerWithMultipleBindings_Handle_Call
- type HandlerWithStream
- type HandlerWithStream_Expecter
- type HandlerWithStream_GetInput_Call
- func (_c *HandlerWithStream_GetInput_Call) Return(_a0 interface{}) *HandlerWithStream_GetInput_Call
- func (_c *HandlerWithStream_GetInput_Call) Run(run func()) *HandlerWithStream_GetInput_Call
- func (_c *HandlerWithStream_GetInput_Call) RunAndReturn(run func() interface{}) *HandlerWithStream_GetInput_Call
- type HandlerWithStream_Handle_Call
- func (_c *HandlerWithStream_Handle_Call) Return(err error) *HandlerWithStream_Handle_Call
- func (_c *HandlerWithStream_Handle_Call) Run(run func(ginContext *gin.Context, requestContext context.Context, ...)) *HandlerWithStream_Handle_Call
- func (_c *HandlerWithStream_Handle_Call) RunAndReturn(run func(*gin.Context, context.Context, *httpserver.Request) error) *HandlerWithStream_Handle_Call
- type HandlerWithoutInput
- type HandlerWithoutInput_Expecter
- type HandlerWithoutInput_Handle_Call
- func (_c *HandlerWithoutInput_Handle_Call) Return(response *httpserver.Response, err error) *HandlerWithoutInput_Handle_Call
- func (_c *HandlerWithoutInput_Handle_Call) Run(run func(requestContext context.Context, request *httpserver.Request)) *HandlerWithoutInput_Handle_Call
- func (_c *HandlerWithoutInput_Handle_Call) RunAndReturn(run func(context.Context, *httpserver.Request) (*httpserver.Response, error)) *HandlerWithoutInput_Handle_Call
- type NetConn
- func (_m *NetConn) Close() error
- func (_m *NetConn) EXPECT() *NetConn_Expecter
- func (_m *NetConn) LocalAddr() net.Addr
- func (_m *NetConn) Read(b []byte) (int, error)
- func (_m *NetConn) RemoteAddr() net.Addr
- func (_m *NetConn) SetDeadline(t time.Time) error
- func (_m *NetConn) SetReadDeadline(t time.Time) error
- func (_m *NetConn) SetWriteDeadline(t time.Time) error
- func (_m *NetConn) Write(b []byte) (int, error)
- type NetConn_Close_Call
- type NetConn_Expecter
- func (_e *NetConn_Expecter) Close() *NetConn_Close_Call
- func (_e *NetConn_Expecter) LocalAddr() *NetConn_LocalAddr_Call
- func (_e *NetConn_Expecter) Read(b interface{}) *NetConn_Read_Call
- func (_e *NetConn_Expecter) RemoteAddr() *NetConn_RemoteAddr_Call
- func (_e *NetConn_Expecter) SetDeadline(t interface{}) *NetConn_SetDeadline_Call
- func (_e *NetConn_Expecter) SetReadDeadline(t interface{}) *NetConn_SetReadDeadline_Call
- func (_e *NetConn_Expecter) SetWriteDeadline(t interface{}) *NetConn_SetWriteDeadline_Call
- func (_e *NetConn_Expecter) Write(b interface{}) *NetConn_Write_Call
- type NetConn_LocalAddr_Call
- type NetConn_Read_Call
- type NetConn_RemoteAddr_Call
- type NetConn_SetDeadline_Call
- type NetConn_SetReadDeadline_Call
- type NetConn_SetWriteDeadline_Call
- func (_c *NetConn_SetWriteDeadline_Call) Return(_a0 error) *NetConn_SetWriteDeadline_Call
- func (_c *NetConn_SetWriteDeadline_Call) Run(run func(t time.Time)) *NetConn_SetWriteDeadline_Call
- func (_c *NetConn_SetWriteDeadline_Call) RunAndReturn(run func(time.Time) error) *NetConn_SetWriteDeadline_Call
- type NetConn_Write_Call
- type NetListener
- type NetListener_Accept_Call
- type NetListener_Addr_Call
- type NetListener_Close_Call
- type NetListener_Expecter
- type ServerMetricRecorder
- func (_m *ServerMetricRecorder) EXPECT() *ServerMetricRecorder_Expecter
- func (_m *ServerMetricRecorder) Run(ctx context.Context) error
- func (_m *ServerMetricRecorder) TrackConnectionClosed(ctx context.Context)
- func (_m *ServerMetricRecorder) TrackConnectionOpened(ctx context.Context)
- func (_m *ServerMetricRecorder) TrackRequestCompleted(ctx context.Context)
- func (_m *ServerMetricRecorder) TrackRequestStarted(ctx context.Context)
- type ServerMetricRecorder_Expecter
- func (_e *ServerMetricRecorder_Expecter) Run(ctx interface{}) *ServerMetricRecorder_Run_Call
- func (_e *ServerMetricRecorder_Expecter) TrackConnectionClosed(ctx interface{}) *ServerMetricRecorder_TrackConnectionClosed_Call
- func (_e *ServerMetricRecorder_Expecter) TrackConnectionOpened(ctx interface{}) *ServerMetricRecorder_TrackConnectionOpened_Call
- func (_e *ServerMetricRecorder_Expecter) TrackRequestCompleted(ctx interface{}) *ServerMetricRecorder_TrackRequestCompleted_Call
- func (_e *ServerMetricRecorder_Expecter) TrackRequestStarted(ctx interface{}) *ServerMetricRecorder_TrackRequestStarted_Call
- type ServerMetricRecorder_Run_Call
- func (_c *ServerMetricRecorder_Run_Call) Return(_a0 error) *ServerMetricRecorder_Run_Call
- func (_c *ServerMetricRecorder_Run_Call) Run(run func(ctx context.Context)) *ServerMetricRecorder_Run_Call
- func (_c *ServerMetricRecorder_Run_Call) RunAndReturn(run func(context.Context) error) *ServerMetricRecorder_Run_Call
- type ServerMetricRecorder_TrackConnectionClosed_Call
- func (_c *ServerMetricRecorder_TrackConnectionClosed_Call) Return() *ServerMetricRecorder_TrackConnectionClosed_Call
- func (_c *ServerMetricRecorder_TrackConnectionClosed_Call) Run(run func(ctx context.Context)) *ServerMetricRecorder_TrackConnectionClosed_Call
- func (_c *ServerMetricRecorder_TrackConnectionClosed_Call) RunAndReturn(run func(context.Context)) *ServerMetricRecorder_TrackConnectionClosed_Call
- type ServerMetricRecorder_TrackConnectionOpened_Call
- func (_c *ServerMetricRecorder_TrackConnectionOpened_Call) Return() *ServerMetricRecorder_TrackConnectionOpened_Call
- func (_c *ServerMetricRecorder_TrackConnectionOpened_Call) Run(run func(ctx context.Context)) *ServerMetricRecorder_TrackConnectionOpened_Call
- func (_c *ServerMetricRecorder_TrackConnectionOpened_Call) RunAndReturn(run func(context.Context)) *ServerMetricRecorder_TrackConnectionOpened_Call
- type ServerMetricRecorder_TrackRequestCompleted_Call
- func (_c *ServerMetricRecorder_TrackRequestCompleted_Call) Return() *ServerMetricRecorder_TrackRequestCompleted_Call
- func (_c *ServerMetricRecorder_TrackRequestCompleted_Call) Run(run func(ctx context.Context)) *ServerMetricRecorder_TrackRequestCompleted_Call
- func (_c *ServerMetricRecorder_TrackRequestCompleted_Call) RunAndReturn(run func(context.Context)) *ServerMetricRecorder_TrackRequestCompleted_Call
- type ServerMetricRecorder_TrackRequestStarted_Call
- func (_c *ServerMetricRecorder_TrackRequestStarted_Call) Return() *ServerMetricRecorder_TrackRequestStarted_Call
- func (_c *ServerMetricRecorder_TrackRequestStarted_Call) Run(run func(ctx context.Context)) *ServerMetricRecorder_TrackRequestStarted_Call
- func (_c *ServerMetricRecorder_TrackRequestStarted_Call) RunAndReturn(run func(context.Context)) *ServerMetricRecorder_TrackRequestStarted_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionLifeCycleAdvisor ¶ added in v0.44.0
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 (_m *ConnectionLifeCycleAdvisor) EXPECT() *ConnectionLifeCycleAdvisor_Expecter
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
ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShouldCloseConnection'
func (*ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call) Run ¶ added in v0.44.0
func (_c *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call) Run(run func(remoteAddr string, headers http.Header)) *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call
func (*ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call) RunAndReturn ¶ added in v0.44.0
func (_c *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call) RunAndReturn(run func(string, http.Header) bool) *ConnectionLifeCycleAdvisor_ShouldCloseConnection_Call
type ConnectionPressureManager ¶ added in v0.62.1
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 (_m *ConnectionPressureManager) EXPECT() *ConnectionPressureManager_Expecter
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
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 (_c *ConnectionPressureManager_CloseOldestIdleConnection_Call) Return(_a0 bool, _a1 error) *ConnectionPressureManager_CloseOldestIdleConnection_Call
func (*ConnectionPressureManager_CloseOldestIdleConnection_Call) Run ¶ added in v0.62.1
func (_c *ConnectionPressureManager_CloseOldestIdleConnection_Call) Run(run func()) *ConnectionPressureManager_CloseOldestIdleConnection_Call
func (*ConnectionPressureManager_CloseOldestIdleConnection_Call) RunAndReturn ¶ added in v0.62.1
func (_c *ConnectionPressureManager_CloseOldestIdleConnection_Call) RunAndReturn(run func() (bool, error)) *ConnectionPressureManager_CloseOldestIdleConnection_Call
type ConnectionPressureManager_ConnState_Call ¶ added in v0.62.1
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 (_c *ConnectionPressureManager_ConnState_Call) Return() *ConnectionPressureManager_ConnState_Call
func (*ConnectionPressureManager_ConnState_Call) Run ¶ added in v0.62.1
func (_c *ConnectionPressureManager_ConnState_Call) Run(run func(_a0 net.Conn, _a1 http.ConnState)) *ConnectionPressureManager_ConnState_Call
func (*ConnectionPressureManager_ConnState_Call) RunAndReturn ¶ added in v0.62.1
func (_c *ConnectionPressureManager_ConnState_Call) RunAndReturn(run func(net.Conn, http.ConnState)) *ConnectionPressureManager_ConnState_Call
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
func (_e *ConnectionPressureManager_Expecter) CloseOldestIdleConnection() *ConnectionPressureManager_CloseOldestIdleConnection_Call
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
func (_e *ConnectionPressureManager_Expecter) IdleConnectionAvailable() *ConnectionPressureManager_IdleConnectionAvailable_Call
IdleConnectionAvailable is a helper method to define mock.On call
type ConnectionPressureManager_IdleConnectionAvailable_Call ¶ added in v0.62.1
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 (_c *ConnectionPressureManager_IdleConnectionAvailable_Call) Return(_a0 <-chan struct{}) *ConnectionPressureManager_IdleConnectionAvailable_Call
func (*ConnectionPressureManager_IdleConnectionAvailable_Call) Run ¶ added in v0.62.1
func (_c *ConnectionPressureManager_IdleConnectionAvailable_Call) Run(run func()) *ConnectionPressureManager_IdleConnectionAvailable_Call
func (*ConnectionPressureManager_IdleConnectionAvailable_Call) RunAndReturn ¶ added in v0.62.1
func (_c *ConnectionPressureManager_IdleConnectionAvailable_Call) RunAndReturn(run func() <-chan struct{}) *ConnectionPressureManager_IdleConnectionAvailable_Call
type HandlerWithInput ¶
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 (_m *HandlerWithInput) EXPECT() *HandlerWithInput_Expecter
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 ¶
func (_e *HandlerWithInput_Expecter) GetInput() *HandlerWithInput_GetInput_Call
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 ¶
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 (_c *HandlerWithInput_GetInput_Call) Return(_a0 interface{}) *HandlerWithInput_GetInput_Call
func (*HandlerWithInput_GetInput_Call) Run ¶
func (_c *HandlerWithInput_GetInput_Call) Run(run func()) *HandlerWithInput_GetInput_Call
func (*HandlerWithInput_GetInput_Call) RunAndReturn ¶
func (_c *HandlerWithInput_GetInput_Call) RunAndReturn(run func() interface{}) *HandlerWithInput_GetInput_Call
type HandlerWithInput_Handle_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 (_c *HandlerWithInput_Handle_Call) Return(response *httpserver.Response, err error) *HandlerWithInput_Handle_Call
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 ¶
func (_c *HandlerWithInput_Handle_Call) RunAndReturn(run func(context.Context, *httpserver.Request) (*httpserver.Response, error)) *HandlerWithInput_Handle_Call
type HandlerWithMultipleBindings ¶
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 (_m *HandlerWithMultipleBindings) EXPECT() *HandlerWithMultipleBindings_Expecter
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 ¶
func (_e *HandlerWithMultipleBindings_Expecter) GetBindings() *HandlerWithMultipleBindings_GetBindings_Call
GetBindings is a helper method to define mock.On call
func (*HandlerWithMultipleBindings_Expecter) GetInput ¶
func (_e *HandlerWithMultipleBindings_Expecter) GetInput() *HandlerWithMultipleBindings_GetInput_Call
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 ¶
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 (_c *HandlerWithMultipleBindings_GetBindings_Call) Return(_a0 []binding.Binding) *HandlerWithMultipleBindings_GetBindings_Call
func (*HandlerWithMultipleBindings_GetBindings_Call) Run ¶
func (_c *HandlerWithMultipleBindings_GetBindings_Call) Run(run func()) *HandlerWithMultipleBindings_GetBindings_Call
func (*HandlerWithMultipleBindings_GetBindings_Call) RunAndReturn ¶
func (_c *HandlerWithMultipleBindings_GetBindings_Call) RunAndReturn(run func() []binding.Binding) *HandlerWithMultipleBindings_GetBindings_Call
type HandlerWithMultipleBindings_GetInput_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 (_c *HandlerWithMultipleBindings_GetInput_Call) Return(_a0 interface{}) *HandlerWithMultipleBindings_GetInput_Call
func (*HandlerWithMultipleBindings_GetInput_Call) Run ¶
func (_c *HandlerWithMultipleBindings_GetInput_Call) Run(run func()) *HandlerWithMultipleBindings_GetInput_Call
func (*HandlerWithMultipleBindings_GetInput_Call) RunAndReturn ¶
func (_c *HandlerWithMultipleBindings_GetInput_Call) RunAndReturn(run func() interface{}) *HandlerWithMultipleBindings_GetInput_Call
type HandlerWithMultipleBindings_Handle_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 (_c *HandlerWithMultipleBindings_Handle_Call) Return(response *httpserver.Response, err error) *HandlerWithMultipleBindings_Handle_Call
func (*HandlerWithMultipleBindings_Handle_Call) Run ¶
func (_c *HandlerWithMultipleBindings_Handle_Call) Run(run func(requestContext context.Context, request *httpserver.Request)) *HandlerWithMultipleBindings_Handle_Call
func (*HandlerWithMultipleBindings_Handle_Call) RunAndReturn ¶
func (_c *HandlerWithMultipleBindings_Handle_Call) RunAndReturn(run func(context.Context, *httpserver.Request) (*httpserver.Response, error)) *HandlerWithMultipleBindings_Handle_Call
type HandlerWithStream ¶
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 (_m *HandlerWithStream) EXPECT() *HandlerWithStream_Expecter
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 ¶
func (_e *HandlerWithStream_Expecter) GetInput() *HandlerWithStream_GetInput_Call
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 ¶
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 (_c *HandlerWithStream_GetInput_Call) Return(_a0 interface{}) *HandlerWithStream_GetInput_Call
func (*HandlerWithStream_GetInput_Call) Run ¶
func (_c *HandlerWithStream_GetInput_Call) Run(run func()) *HandlerWithStream_GetInput_Call
func (*HandlerWithStream_GetInput_Call) RunAndReturn ¶
func (_c *HandlerWithStream_GetInput_Call) RunAndReturn(run func() interface{}) *HandlerWithStream_GetInput_Call
type HandlerWithStream_Handle_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 (_c *HandlerWithStream_Handle_Call) Return(err error) *HandlerWithStream_Handle_Call
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 ¶
func (_c *HandlerWithStream_Handle_Call) RunAndReturn(run func(*gin.Context, context.Context, *httpserver.Request) error) *HandlerWithStream_Handle_Call
type HandlerWithoutInput ¶
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 (_m *HandlerWithoutInput) EXPECT() *HandlerWithoutInput_Expecter
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 ¶
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 (_c *HandlerWithoutInput_Handle_Call) Return(response *httpserver.Response, err error) *HandlerWithoutInput_Handle_Call
func (*HandlerWithoutInput_Handle_Call) Run ¶
func (_c *HandlerWithoutInput_Handle_Call) Run(run func(requestContext context.Context, request *httpserver.Request)) *HandlerWithoutInput_Handle_Call
func (*HandlerWithoutInput_Handle_Call) RunAndReturn ¶
func (_c *HandlerWithoutInput_Handle_Call) RunAndReturn(run func(context.Context, *httpserver.Request) (*httpserver.Response, error)) *HandlerWithoutInput_Handle_Call
type NetConn ¶ added in v0.62.1
NetConn is an autogenerated mock type for the NetConn type
func NewNetConn ¶ added in v0.62.1
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) EXPECT ¶ added in v0.62.1
func (_m *NetConn) EXPECT() *NetConn_Expecter
func (*NetConn) RemoteAddr ¶ added in v0.62.1
RemoteAddr provides a mock function with no fields
func (*NetConn) SetDeadline ¶ added in v0.62.1
SetDeadline provides a mock function with given fields: t
func (*NetConn) SetReadDeadline ¶ added in v0.62.1
SetReadDeadline provides a mock function with given fields: t
func (*NetConn) SetWriteDeadline ¶ added in v0.62.1
SetWriteDeadline provides a mock function with given fields: t
type NetConn_Close_Call ¶ added in v0.62.1
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
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 (_c *NetConn_LocalAddr_Call) Return(_a0 net.Addr) *NetConn_LocalAddr_Call
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
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
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 (_c *NetConn_RemoteAddr_Call) Return(_a0 net.Addr) *NetConn_RemoteAddr_Call
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
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 (_c *NetConn_SetDeadline_Call) Return(_a0 error) *NetConn_SetDeadline_Call
func (*NetConn_SetDeadline_Call) Run ¶ added in v0.62.1
func (_c *NetConn_SetDeadline_Call) Run(run func(t time.Time)) *NetConn_SetDeadline_Call
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
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 (_c *NetConn_SetReadDeadline_Call) Return(_a0 error) *NetConn_SetReadDeadline_Call
func (*NetConn_SetReadDeadline_Call) Run ¶ added in v0.62.1
func (_c *NetConn_SetReadDeadline_Call) Run(run func(t time.Time)) *NetConn_SetReadDeadline_Call
func (*NetConn_SetReadDeadline_Call) RunAndReturn ¶ added in v0.62.1
func (_c *NetConn_SetReadDeadline_Call) RunAndReturn(run func(time.Time) error) *NetConn_SetReadDeadline_Call
type NetConn_SetWriteDeadline_Call ¶ added in v0.62.1
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 (_c *NetConn_SetWriteDeadline_Call) Return(_a0 error) *NetConn_SetWriteDeadline_Call
func (*NetConn_SetWriteDeadline_Call) Run ¶ added in v0.62.1
func (_c *NetConn_SetWriteDeadline_Call) Run(run func(t time.Time)) *NetConn_SetWriteDeadline_Call
func (*NetConn_SetWriteDeadline_Call) RunAndReturn ¶ added in v0.62.1
func (_c *NetConn_SetWriteDeadline_Call) RunAndReturn(run func(time.Time) error) *NetConn_SetWriteDeadline_Call
type NetConn_Write_Call ¶ added in v0.62.1
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
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
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 (_c *NetListener_Accept_Call) Return(_a0 net.Conn, _a1 error) *NetListener_Accept_Call
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
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 (_c *NetListener_Addr_Call) Return(_a0 net.Addr) *NetListener_Addr_Call
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
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 (_c *NetListener_Close_Call) Return(_a0 error) *NetListener_Close_Call
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
func (_e *NetListener_Expecter) Accept() *NetListener_Accept_Call
Accept is a helper method to define mock.On call
func (*NetListener_Expecter) Addr ¶ added in v0.62.1
func (_e *NetListener_Expecter) Addr() *NetListener_Addr_Call
Addr is a helper method to define mock.On call
func (*NetListener_Expecter) Close ¶ added in v0.62.1
func (_e *NetListener_Expecter) Close() *NetListener_Close_Call
Close is a helper method to define mock.On call
type ServerMetricRecorder ¶ added in v0.62.1
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 (_m *ServerMetricRecorder) EXPECT() *ServerMetricRecorder_Expecter
func (*ServerMetricRecorder) Run ¶ added in v0.62.1
func (_m *ServerMetricRecorder) Run(ctx context.Context) error
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
func (_e *ServerMetricRecorder_Expecter) Run(ctx interface{}) *ServerMetricRecorder_Run_Call
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
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 (_c *ServerMetricRecorder_Run_Call) Return(_a0 error) *ServerMetricRecorder_Run_Call
func (*ServerMetricRecorder_Run_Call) Run ¶ added in v0.62.1
func (_c *ServerMetricRecorder_Run_Call) Run(run func(ctx context.Context)) *ServerMetricRecorder_Run_Call
func (*ServerMetricRecorder_Run_Call) RunAndReturn ¶ added in v0.62.1
func (_c *ServerMetricRecorder_Run_Call) RunAndReturn(run func(context.Context) error) *ServerMetricRecorder_Run_Call
type ServerMetricRecorder_TrackConnectionClosed_Call ¶ added in v0.62.1
ServerMetricRecorder_TrackConnectionClosed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TrackConnectionClosed'
func (*ServerMetricRecorder_TrackConnectionClosed_Call) Run ¶ added in v0.62.1
func (_c *ServerMetricRecorder_TrackConnectionClosed_Call) Run(run func(ctx context.Context)) *ServerMetricRecorder_TrackConnectionClosed_Call
func (*ServerMetricRecorder_TrackConnectionClosed_Call) RunAndReturn ¶ added in v0.62.1
func (_c *ServerMetricRecorder_TrackConnectionClosed_Call) RunAndReturn(run func(context.Context)) *ServerMetricRecorder_TrackConnectionClosed_Call
type ServerMetricRecorder_TrackConnectionOpened_Call ¶ added in v0.62.1
ServerMetricRecorder_TrackConnectionOpened_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TrackConnectionOpened'
func (*ServerMetricRecorder_TrackConnectionOpened_Call) Run ¶ added in v0.62.1
func (_c *ServerMetricRecorder_TrackConnectionOpened_Call) Run(run func(ctx context.Context)) *ServerMetricRecorder_TrackConnectionOpened_Call
func (*ServerMetricRecorder_TrackConnectionOpened_Call) RunAndReturn ¶ added in v0.62.1
func (_c *ServerMetricRecorder_TrackConnectionOpened_Call) RunAndReturn(run func(context.Context)) *ServerMetricRecorder_TrackConnectionOpened_Call
type ServerMetricRecorder_TrackRequestCompleted_Call ¶ added in v0.62.1
ServerMetricRecorder_TrackRequestCompleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TrackRequestCompleted'
func (*ServerMetricRecorder_TrackRequestCompleted_Call) Run ¶ added in v0.62.1
func (_c *ServerMetricRecorder_TrackRequestCompleted_Call) Run(run func(ctx context.Context)) *ServerMetricRecorder_TrackRequestCompleted_Call
func (*ServerMetricRecorder_TrackRequestCompleted_Call) RunAndReturn ¶ added in v0.62.1
func (_c *ServerMetricRecorder_TrackRequestCompleted_Call) RunAndReturn(run func(context.Context)) *ServerMetricRecorder_TrackRequestCompleted_Call
type ServerMetricRecorder_TrackRequestStarted_Call ¶ added in v0.62.1
ServerMetricRecorder_TrackRequestStarted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TrackRequestStarted'
func (*ServerMetricRecorder_TrackRequestStarted_Call) Run ¶ added in v0.62.1
func (_c *ServerMetricRecorder_TrackRequestStarted_Call) Run(run func(ctx context.Context)) *ServerMetricRecorder_TrackRequestStarted_Call
func (*ServerMetricRecorder_TrackRequestStarted_Call) RunAndReturn ¶ added in v0.62.1
func (_c *ServerMetricRecorder_TrackRequestStarted_Call) RunAndReturn(run func(context.Context)) *ServerMetricRecorder_TrackRequestStarted_Call