Documentation ¶
Index ¶
- type ConnectionAcceptor
- func (_m *ConnectionAcceptor) AbortHandshake(attemptId string)
- func (_m *ConnectionAcceptor) EXPECT() *ConnectionAcceptor_Expecter
- func (_m *ConnectionAcceptor) FinalizeHandshake(attemptId string, response []byte, conn *websocket.Conn) error
- func (_m *ConnectionAcceptor) StartHandshake(authHeader []byte) (string, []byte, error)
- type ConnectionAcceptor_AbortHandshake_Call
- func (_c *ConnectionAcceptor_AbortHandshake_Call) Return() *ConnectionAcceptor_AbortHandshake_Call
- func (_c *ConnectionAcceptor_AbortHandshake_Call) Run(run func(attemptId string)) *ConnectionAcceptor_AbortHandshake_Call
- func (_c *ConnectionAcceptor_AbortHandshake_Call) RunAndReturn(run func(string)) *ConnectionAcceptor_AbortHandshake_Call
- type ConnectionAcceptor_Expecter
- func (_e *ConnectionAcceptor_Expecter) AbortHandshake(attemptId interface{}) *ConnectionAcceptor_AbortHandshake_Call
- func (_e *ConnectionAcceptor_Expecter) FinalizeHandshake(attemptId interface{}, response interface{}, conn interface{}) *ConnectionAcceptor_FinalizeHandshake_Call
- func (_e *ConnectionAcceptor_Expecter) StartHandshake(authHeader interface{}) *ConnectionAcceptor_StartHandshake_Call
- type ConnectionAcceptor_FinalizeHandshake_Call
- func (_c *ConnectionAcceptor_FinalizeHandshake_Call) Return(_a0 error) *ConnectionAcceptor_FinalizeHandshake_Call
- func (_c *ConnectionAcceptor_FinalizeHandshake_Call) Run(run func(attemptId string, response []byte, conn *websocket.Conn)) *ConnectionAcceptor_FinalizeHandshake_Call
- func (_c *ConnectionAcceptor_FinalizeHandshake_Call) RunAndReturn(run func(string, []byte, *websocket.Conn) error) *ConnectionAcceptor_FinalizeHandshake_Call
- type ConnectionAcceptor_StartHandshake_Call
- func (_c *ConnectionAcceptor_StartHandshake_Call) Return(attemptId string, challenge []byte, err error) *ConnectionAcceptor_StartHandshake_Call
- func (_c *ConnectionAcceptor_StartHandshake_Call) Run(run func(authHeader []byte)) *ConnectionAcceptor_StartHandshake_Call
- func (_c *ConnectionAcceptor_StartHandshake_Call) RunAndReturn(run func([]byte) (string, []byte, error)) *ConnectionAcceptor_StartHandshake_Call
- type ConnectionInitiator
- type ConnectionInitiator_ChallengeResponse_Call
- func (_c *ConnectionInitiator_ChallengeResponse_Call) Return(_a0 []byte, _a1 error) *ConnectionInitiator_ChallengeResponse_Call
- func (_c *ConnectionInitiator_ChallengeResponse_Call) Run(run func(_a0 *url.URL, challenge []byte)) *ConnectionInitiator_ChallengeResponse_Call
- func (_c *ConnectionInitiator_ChallengeResponse_Call) RunAndReturn(run func(*url.URL, []byte) ([]byte, error)) *ConnectionInitiator_ChallengeResponse_Call
- type ConnectionInitiator_Expecter
- type ConnectionInitiator_NewAuthHeader_Call
- func (_c *ConnectionInitiator_NewAuthHeader_Call) Return(_a0 []byte, _a1 error) *ConnectionInitiator_NewAuthHeader_Call
- func (_c *ConnectionInitiator_NewAuthHeader_Call) Run(run func(_a0 *url.URL)) *ConnectionInitiator_NewAuthHeader_Call
- func (_c *ConnectionInitiator_NewAuthHeader_Call) RunAndReturn(run func(*url.URL) ([]byte, error)) *ConnectionInitiator_NewAuthHeader_Call
- type HTTPRequestHandler
- type HTTPRequestHandler_Expecter
- type HTTPRequestHandler_ProcessRequest_Call
- func (_c *HTTPRequestHandler_ProcessRequest_Call) Return(rawResponse []byte, httpStatusCode int) *HTTPRequestHandler_ProcessRequest_Call
- func (_c *HTTPRequestHandler_ProcessRequest_Call) Run(run func(ctx context.Context, rawRequest []byte)) *HTTPRequestHandler_ProcessRequest_Call
- func (_c *HTTPRequestHandler_ProcessRequest_Call) RunAndReturn(run func(context.Context, []byte) ([]byte, int)) *HTTPRequestHandler_ProcessRequest_Call
- type HttpServer
- type HttpServer_Close_Call
- type HttpServer_Expecter
- func (_e *HttpServer_Expecter) Close() *HttpServer_Close_Call
- func (_e *HttpServer_Expecter) GetPort() *HttpServer_GetPort_Call
- func (_e *HttpServer_Expecter) SetHTTPRequestHandler(handler interface{}) *HttpServer_SetHTTPRequestHandler_Call
- func (_e *HttpServer_Expecter) Start(_a0 interface{}) *HttpServer_Start_Call
- type HttpServer_GetPort_Call
- type HttpServer_SetHTTPRequestHandler_Call
- func (_c *HttpServer_SetHTTPRequestHandler_Call) Return() *HttpServer_SetHTTPRequestHandler_Call
- func (_c *HttpServer_SetHTTPRequestHandler_Call) Run(run func(handler network.HTTPRequestHandler)) *HttpServer_SetHTTPRequestHandler_Call
- func (_c *HttpServer_SetHTTPRequestHandler_Call) RunAndReturn(run func(network.HTTPRequestHandler)) *HttpServer_SetHTTPRequestHandler_Call
- type HttpServer_Start_Call
- type WebSocketServer
- type WebSocketServer_Close_Call
- type WebSocketServer_Expecter
- type WebSocketServer_GetPort_Call
- type WebSocketServer_Start_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionAcceptor ¶ added in v2.3.0
ConnectionAcceptor is an autogenerated mock type for the ConnectionAcceptor type
func NewConnectionAcceptor ¶ added in v2.3.0
func NewConnectionAcceptor(t interface { mock.TestingT Cleanup(func()) }) *ConnectionAcceptor
NewConnectionAcceptor creates a new instance of ConnectionAcceptor. 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 (*ConnectionAcceptor) AbortHandshake ¶ added in v2.3.0
func (_m *ConnectionAcceptor) AbortHandshake(attemptId string)
AbortHandshake provides a mock function with given fields: attemptId
func (*ConnectionAcceptor) EXPECT ¶ added in v2.15.0
func (_m *ConnectionAcceptor) EXPECT() *ConnectionAcceptor_Expecter
func (*ConnectionAcceptor) FinalizeHandshake ¶ added in v2.3.0
func (_m *ConnectionAcceptor) FinalizeHandshake(attemptId string, response []byte, conn *websocket.Conn) error
FinalizeHandshake provides a mock function with given fields: attemptId, response, conn
func (*ConnectionAcceptor) StartHandshake ¶ added in v2.3.0
func (_m *ConnectionAcceptor) StartHandshake(authHeader []byte) (string, []byte, error)
StartHandshake provides a mock function with given fields: authHeader
type ConnectionAcceptor_AbortHandshake_Call ¶ added in v2.15.0
ConnectionAcceptor_AbortHandshake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortHandshake'
func (*ConnectionAcceptor_AbortHandshake_Call) Return ¶ added in v2.15.0
func (_c *ConnectionAcceptor_AbortHandshake_Call) Return() *ConnectionAcceptor_AbortHandshake_Call
func (*ConnectionAcceptor_AbortHandshake_Call) Run ¶ added in v2.15.0
func (_c *ConnectionAcceptor_AbortHandshake_Call) Run(run func(attemptId string)) *ConnectionAcceptor_AbortHandshake_Call
func (*ConnectionAcceptor_AbortHandshake_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ConnectionAcceptor_AbortHandshake_Call) RunAndReturn(run func(string)) *ConnectionAcceptor_AbortHandshake_Call
type ConnectionAcceptor_Expecter ¶ added in v2.15.0
type ConnectionAcceptor_Expecter struct {
// contains filtered or unexported fields
}
func (*ConnectionAcceptor_Expecter) AbortHandshake ¶ added in v2.15.0
func (_e *ConnectionAcceptor_Expecter) AbortHandshake(attemptId interface{}) *ConnectionAcceptor_AbortHandshake_Call
AbortHandshake is a helper method to define mock.On call
- attemptId string
func (*ConnectionAcceptor_Expecter) FinalizeHandshake ¶ added in v2.15.0
func (_e *ConnectionAcceptor_Expecter) FinalizeHandshake(attemptId interface{}, response interface{}, conn interface{}) *ConnectionAcceptor_FinalizeHandshake_Call
FinalizeHandshake is a helper method to define mock.On call
- attemptId string
- response []byte
- conn *websocket.Conn
func (*ConnectionAcceptor_Expecter) StartHandshake ¶ added in v2.15.0
func (_e *ConnectionAcceptor_Expecter) StartHandshake(authHeader interface{}) *ConnectionAcceptor_StartHandshake_Call
StartHandshake is a helper method to define mock.On call
- authHeader []byte
type ConnectionAcceptor_FinalizeHandshake_Call ¶ added in v2.15.0
ConnectionAcceptor_FinalizeHandshake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinalizeHandshake'
func (*ConnectionAcceptor_FinalizeHandshake_Call) Return ¶ added in v2.15.0
func (_c *ConnectionAcceptor_FinalizeHandshake_Call) Return(_a0 error) *ConnectionAcceptor_FinalizeHandshake_Call
func (*ConnectionAcceptor_FinalizeHandshake_Call) Run ¶ added in v2.15.0
func (_c *ConnectionAcceptor_FinalizeHandshake_Call) Run(run func(attemptId string, response []byte, conn *websocket.Conn)) *ConnectionAcceptor_FinalizeHandshake_Call
func (*ConnectionAcceptor_FinalizeHandshake_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ConnectionAcceptor_FinalizeHandshake_Call) RunAndReturn(run func(string, []byte, *websocket.Conn) error) *ConnectionAcceptor_FinalizeHandshake_Call
type ConnectionAcceptor_StartHandshake_Call ¶ added in v2.15.0
ConnectionAcceptor_StartHandshake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartHandshake'
func (*ConnectionAcceptor_StartHandshake_Call) Return ¶ added in v2.15.0
func (_c *ConnectionAcceptor_StartHandshake_Call) Return(attemptId string, challenge []byte, err error) *ConnectionAcceptor_StartHandshake_Call
func (*ConnectionAcceptor_StartHandshake_Call) Run ¶ added in v2.15.0
func (_c *ConnectionAcceptor_StartHandshake_Call) Run(run func(authHeader []byte)) *ConnectionAcceptor_StartHandshake_Call
func (*ConnectionAcceptor_StartHandshake_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ConnectionAcceptor_StartHandshake_Call) RunAndReturn(run func([]byte) (string, []byte, error)) *ConnectionAcceptor_StartHandshake_Call
type ConnectionInitiator ¶ added in v2.3.0
ConnectionInitiator is an autogenerated mock type for the ConnectionInitiator type
func NewConnectionInitiator ¶ added in v2.3.0
func NewConnectionInitiator(t interface { mock.TestingT Cleanup(func()) }) *ConnectionInitiator
NewConnectionInitiator creates a new instance of ConnectionInitiator. 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 (*ConnectionInitiator) ChallengeResponse ¶ added in v2.3.0
ChallengeResponse provides a mock function with given fields: _a0, challenge
func (*ConnectionInitiator) EXPECT ¶ added in v2.15.0
func (_m *ConnectionInitiator) EXPECT() *ConnectionInitiator_Expecter
func (*ConnectionInitiator) NewAuthHeader ¶ added in v2.3.0
func (_m *ConnectionInitiator) NewAuthHeader(_a0 *url.URL) ([]byte, error)
NewAuthHeader provides a mock function with given fields: _a0
type ConnectionInitiator_ChallengeResponse_Call ¶ added in v2.15.0
ConnectionInitiator_ChallengeResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChallengeResponse'
func (*ConnectionInitiator_ChallengeResponse_Call) Return ¶ added in v2.15.0
func (_c *ConnectionInitiator_ChallengeResponse_Call) Return(_a0 []byte, _a1 error) *ConnectionInitiator_ChallengeResponse_Call
func (*ConnectionInitiator_ChallengeResponse_Call) Run ¶ added in v2.15.0
func (_c *ConnectionInitiator_ChallengeResponse_Call) Run(run func(_a0 *url.URL, challenge []byte)) *ConnectionInitiator_ChallengeResponse_Call
func (*ConnectionInitiator_ChallengeResponse_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ConnectionInitiator_ChallengeResponse_Call) RunAndReturn(run func(*url.URL, []byte) ([]byte, error)) *ConnectionInitiator_ChallengeResponse_Call
type ConnectionInitiator_Expecter ¶ added in v2.15.0
type ConnectionInitiator_Expecter struct {
// contains filtered or unexported fields
}
func (*ConnectionInitiator_Expecter) ChallengeResponse ¶ added in v2.15.0
func (_e *ConnectionInitiator_Expecter) ChallengeResponse(_a0 interface{}, challenge interface{}) *ConnectionInitiator_ChallengeResponse_Call
ChallengeResponse is a helper method to define mock.On call
- _a0 *url.URL
- challenge []byte
func (*ConnectionInitiator_Expecter) NewAuthHeader ¶ added in v2.15.0
func (_e *ConnectionInitiator_Expecter) NewAuthHeader(_a0 interface{}) *ConnectionInitiator_NewAuthHeader_Call
NewAuthHeader is a helper method to define mock.On call
- _a0 *url.URL
type ConnectionInitiator_NewAuthHeader_Call ¶ added in v2.15.0
ConnectionInitiator_NewAuthHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewAuthHeader'
func (*ConnectionInitiator_NewAuthHeader_Call) Return ¶ added in v2.15.0
func (_c *ConnectionInitiator_NewAuthHeader_Call) Return(_a0 []byte, _a1 error) *ConnectionInitiator_NewAuthHeader_Call
func (*ConnectionInitiator_NewAuthHeader_Call) Run ¶ added in v2.15.0
func (_c *ConnectionInitiator_NewAuthHeader_Call) Run(run func(_a0 *url.URL)) *ConnectionInitiator_NewAuthHeader_Call
func (*ConnectionInitiator_NewAuthHeader_Call) RunAndReturn ¶ added in v2.15.0
func (_c *ConnectionInitiator_NewAuthHeader_Call) RunAndReturn(run func(*url.URL) ([]byte, error)) *ConnectionInitiator_NewAuthHeader_Call
type HTTPRequestHandler ¶ added in v2.3.0
HTTPRequestHandler is an autogenerated mock type for the HTTPRequestHandler type
func NewHTTPRequestHandler ¶ added in v2.3.0
func NewHTTPRequestHandler(t interface { mock.TestingT Cleanup(func()) }) *HTTPRequestHandler
NewHTTPRequestHandler creates a new instance of HTTPRequestHandler. 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 (*HTTPRequestHandler) EXPECT ¶ added in v2.15.0
func (_m *HTTPRequestHandler) EXPECT() *HTTPRequestHandler_Expecter
func (*HTTPRequestHandler) ProcessRequest ¶ added in v2.3.0
ProcessRequest provides a mock function with given fields: ctx, rawRequest
type HTTPRequestHandler_Expecter ¶ added in v2.15.0
type HTTPRequestHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*HTTPRequestHandler_Expecter) ProcessRequest ¶ added in v2.15.0
func (_e *HTTPRequestHandler_Expecter) ProcessRequest(ctx interface{}, rawRequest interface{}) *HTTPRequestHandler_ProcessRequest_Call
ProcessRequest is a helper method to define mock.On call
- ctx context.Context
- rawRequest []byte
type HTTPRequestHandler_ProcessRequest_Call ¶ added in v2.15.0
HTTPRequestHandler_ProcessRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessRequest'
func (*HTTPRequestHandler_ProcessRequest_Call) Return ¶ added in v2.15.0
func (_c *HTTPRequestHandler_ProcessRequest_Call) Return(rawResponse []byte, httpStatusCode int) *HTTPRequestHandler_ProcessRequest_Call
func (*HTTPRequestHandler_ProcessRequest_Call) Run ¶ added in v2.15.0
func (_c *HTTPRequestHandler_ProcessRequest_Call) Run(run func(ctx context.Context, rawRequest []byte)) *HTTPRequestHandler_ProcessRequest_Call
func (*HTTPRequestHandler_ProcessRequest_Call) RunAndReturn ¶ added in v2.15.0
func (_c *HTTPRequestHandler_ProcessRequest_Call) RunAndReturn(run func(context.Context, []byte) ([]byte, int)) *HTTPRequestHandler_ProcessRequest_Call
type HttpServer ¶
HttpServer is an autogenerated mock type for the HttpServer type
func NewHttpServer ¶
func NewHttpServer(t interface { mock.TestingT Cleanup(func()) }) *HttpServer
NewHttpServer creates a new instance of HttpServer. 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 (*HttpServer) Close ¶
func (_m *HttpServer) Close() error
Close provides a mock function with given fields:
func (*HttpServer) EXPECT ¶ added in v2.15.0
func (_m *HttpServer) EXPECT() *HttpServer_Expecter
func (*HttpServer) GetPort ¶ added in v2.3.0
func (_m *HttpServer) GetPort() int
GetPort provides a mock function with given fields:
func (*HttpServer) SetHTTPRequestHandler ¶
func (_m *HttpServer) SetHTTPRequestHandler(handler network.HTTPRequestHandler)
SetHTTPRequestHandler provides a mock function with given fields: handler
type HttpServer_Close_Call ¶ added in v2.15.0
HttpServer_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*HttpServer_Close_Call) Return ¶ added in v2.15.0
func (_c *HttpServer_Close_Call) Return(_a0 error) *HttpServer_Close_Call
func (*HttpServer_Close_Call) Run ¶ added in v2.15.0
func (_c *HttpServer_Close_Call) Run(run func()) *HttpServer_Close_Call
func (*HttpServer_Close_Call) RunAndReturn ¶ added in v2.15.0
func (_c *HttpServer_Close_Call) RunAndReturn(run func() error) *HttpServer_Close_Call
type HttpServer_Expecter ¶ added in v2.15.0
type HttpServer_Expecter struct {
// contains filtered or unexported fields
}
func (*HttpServer_Expecter) Close ¶ added in v2.15.0
func (_e *HttpServer_Expecter) Close() *HttpServer_Close_Call
Close is a helper method to define mock.On call
func (*HttpServer_Expecter) GetPort ¶ added in v2.15.0
func (_e *HttpServer_Expecter) GetPort() *HttpServer_GetPort_Call
GetPort is a helper method to define mock.On call
func (*HttpServer_Expecter) SetHTTPRequestHandler ¶ added in v2.15.0
func (_e *HttpServer_Expecter) SetHTTPRequestHandler(handler interface{}) *HttpServer_SetHTTPRequestHandler_Call
SetHTTPRequestHandler is a helper method to define mock.On call
- handler network.HTTPRequestHandler
func (*HttpServer_Expecter) Start ¶ added in v2.15.0
func (_e *HttpServer_Expecter) Start(_a0 interface{}) *HttpServer_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
type HttpServer_GetPort_Call ¶ added in v2.15.0
HttpServer_GetPort_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPort'
func (*HttpServer_GetPort_Call) Return ¶ added in v2.15.0
func (_c *HttpServer_GetPort_Call) Return(_a0 int) *HttpServer_GetPort_Call
func (*HttpServer_GetPort_Call) Run ¶ added in v2.15.0
func (_c *HttpServer_GetPort_Call) Run(run func()) *HttpServer_GetPort_Call
func (*HttpServer_GetPort_Call) RunAndReturn ¶ added in v2.15.0
func (_c *HttpServer_GetPort_Call) RunAndReturn(run func() int) *HttpServer_GetPort_Call
type HttpServer_SetHTTPRequestHandler_Call ¶ added in v2.15.0
HttpServer_SetHTTPRequestHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHTTPRequestHandler'
func (*HttpServer_SetHTTPRequestHandler_Call) Return ¶ added in v2.15.0
func (_c *HttpServer_SetHTTPRequestHandler_Call) Return() *HttpServer_SetHTTPRequestHandler_Call
func (*HttpServer_SetHTTPRequestHandler_Call) Run ¶ added in v2.15.0
func (_c *HttpServer_SetHTTPRequestHandler_Call) Run(run func(handler network.HTTPRequestHandler)) *HttpServer_SetHTTPRequestHandler_Call
func (*HttpServer_SetHTTPRequestHandler_Call) RunAndReturn ¶ added in v2.15.0
func (_c *HttpServer_SetHTTPRequestHandler_Call) RunAndReturn(run func(network.HTTPRequestHandler)) *HttpServer_SetHTTPRequestHandler_Call
type HttpServer_Start_Call ¶ added in v2.15.0
HttpServer_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*HttpServer_Start_Call) Return ¶ added in v2.15.0
func (_c *HttpServer_Start_Call) Return(_a0 error) *HttpServer_Start_Call
func (*HttpServer_Start_Call) Run ¶ added in v2.15.0
func (_c *HttpServer_Start_Call) Run(run func(_a0 context.Context)) *HttpServer_Start_Call
func (*HttpServer_Start_Call) RunAndReturn ¶ added in v2.15.0
func (_c *HttpServer_Start_Call) RunAndReturn(run func(context.Context) error) *HttpServer_Start_Call
type WebSocketServer ¶
WebSocketServer is an autogenerated mock type for the WebSocketServer type
func NewWebSocketServer ¶
func NewWebSocketServer(t interface { mock.TestingT Cleanup(func()) }) *WebSocketServer
NewWebSocketServer creates a new instance of WebSocketServer. 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 (*WebSocketServer) Close ¶
func (_m *WebSocketServer) Close() error
Close provides a mock function with given fields:
func (*WebSocketServer) EXPECT ¶ added in v2.15.0
func (_m *WebSocketServer) EXPECT() *WebSocketServer_Expecter
func (*WebSocketServer) GetPort ¶ added in v2.3.0
func (_m *WebSocketServer) GetPort() int
GetPort provides a mock function with given fields:
type WebSocketServer_Close_Call ¶ added in v2.15.0
WebSocketServer_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*WebSocketServer_Close_Call) Return ¶ added in v2.15.0
func (_c *WebSocketServer_Close_Call) Return(_a0 error) *WebSocketServer_Close_Call
func (*WebSocketServer_Close_Call) Run ¶ added in v2.15.0
func (_c *WebSocketServer_Close_Call) Run(run func()) *WebSocketServer_Close_Call
func (*WebSocketServer_Close_Call) RunAndReturn ¶ added in v2.15.0
func (_c *WebSocketServer_Close_Call) RunAndReturn(run func() error) *WebSocketServer_Close_Call
type WebSocketServer_Expecter ¶ added in v2.15.0
type WebSocketServer_Expecter struct {
// contains filtered or unexported fields
}
func (*WebSocketServer_Expecter) Close ¶ added in v2.15.0
func (_e *WebSocketServer_Expecter) Close() *WebSocketServer_Close_Call
Close is a helper method to define mock.On call
func (*WebSocketServer_Expecter) GetPort ¶ added in v2.15.0
func (_e *WebSocketServer_Expecter) GetPort() *WebSocketServer_GetPort_Call
GetPort is a helper method to define mock.On call
func (*WebSocketServer_Expecter) Start ¶ added in v2.15.0
func (_e *WebSocketServer_Expecter) Start(_a0 interface{}) *WebSocketServer_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
type WebSocketServer_GetPort_Call ¶ added in v2.15.0
WebSocketServer_GetPort_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPort'
func (*WebSocketServer_GetPort_Call) Return ¶ added in v2.15.0
func (_c *WebSocketServer_GetPort_Call) Return(_a0 int) *WebSocketServer_GetPort_Call
func (*WebSocketServer_GetPort_Call) Run ¶ added in v2.15.0
func (_c *WebSocketServer_GetPort_Call) Run(run func()) *WebSocketServer_GetPort_Call
func (*WebSocketServer_GetPort_Call) RunAndReturn ¶ added in v2.15.0
func (_c *WebSocketServer_GetPort_Call) RunAndReturn(run func() int) *WebSocketServer_GetPort_Call
type WebSocketServer_Start_Call ¶ added in v2.15.0
WebSocketServer_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*WebSocketServer_Start_Call) Return ¶ added in v2.15.0
func (_c *WebSocketServer_Start_Call) Return(_a0 error) *WebSocketServer_Start_Call
func (*WebSocketServer_Start_Call) Run ¶ added in v2.15.0
func (_c *WebSocketServer_Start_Call) Run(run func(_a0 context.Context)) *WebSocketServer_Start_Call
func (*WebSocketServer_Start_Call) RunAndReturn ¶ added in v2.15.0
func (_c *WebSocketServer_Start_Call) RunAndReturn(run func(context.Context) error) *WebSocketServer_Start_Call