Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionAcceptor ¶
ConnectionAcceptor is an autogenerated mock type for the ConnectionAcceptor type
func NewConnectionAcceptor ¶
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 ¶
func (_m *ConnectionAcceptor) AbortHandshake(attemptId string)
AbortHandshake provides a mock function with given fields: attemptId
func (*ConnectionAcceptor) FinalizeHandshake ¶
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 ¶
func (_m *ConnectionAcceptor) StartHandshake(authHeader []byte) (string, []byte, error)
StartHandshake provides a mock function with given fields: authHeader
type ConnectionInitiator ¶
ConnectionInitiator is an autogenerated mock type for the ConnectionInitiator type
func NewConnectionInitiator ¶
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 ¶
ChallengeResponse provides a mock function with given fields: _a0, challenge
func (*ConnectionInitiator) NewAuthHeader ¶
func (_m *ConnectionInitiator) NewAuthHeader(_a0 *url.URL) ([]byte, error)
NewAuthHeader provides a mock function with given fields: _a0
type HTTPRequestHandler ¶
HTTPRequestHandler is an autogenerated mock type for the HTTPRequestHandler type
func NewHTTPRequestHandler ¶
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) ProcessRequest ¶
ProcessRequest provides a mock function with given fields: ctx, rawRequest
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) GetPort ¶
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 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) GetPort ¶
func (_m *WebSocketServer) GetPort() int
GetPort provides a mock function with given fields: