Documentation ¶
Index ¶
- type MockWebsocketConn
- func (_m *MockWebsocketConn) Close() error
- func (_m *MockWebsocketConn) ReadMessage() (int, []byte, error)
- func (_m *MockWebsocketConn) SetCloseHandler(h func(code int, text string) error)
- func (_m *MockWebsocketConn) WriteControl(messageType int, data []byte, deadline time.Time) error
- func (_m *MockWebsocketConn) WriteMessage(messageType int, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWebsocketConn ¶
MockWebsocketConn is a mock for WebsocketConn used for unit testing
func (*MockWebsocketConn) Close ¶
func (_m *MockWebsocketConn) Close() error
Close closes the connection
func (*MockWebsocketConn) ReadMessage ¶
func (_m *MockWebsocketConn) ReadMessage() (int, []byte, error)
ReadMessage reads a message
func (*MockWebsocketConn) SetCloseHandler ¶
func (_m *MockWebsocketConn) SetCloseHandler(h func(code int, text string) error)
SetCloseHandler sets a close handler
func (*MockWebsocketConn) WriteControl ¶
WriteControl writes a control message
func (*MockWebsocketConn) WriteMessage ¶
func (_m *MockWebsocketConn) WriteMessage(messageType int, data []byte) error
WriteMessage writes a message
Click to show internal directories.
Click to hide internal directories.