Documentation ¶
Index ¶
- type MockClientServer
- func (_m *MockClientServer) AddRequestHandler(_param0 wsclient.RequestHandler)
- func (_m *MockClientServer) Close() error
- func (_m *MockClientServer) Connect() error
- func (_m *MockClientServer) Disconnect(_param0 ...interface{}) error
- func (_m *MockClientServer) EXPECT() *_MockClientServerRecorder
- func (_m *MockClientServer) IsConnected() bool
- func (_m *MockClientServer) MakeRequest(_param0 interface{}) error
- func (_m *MockClientServer) Serve() error
- func (_m *MockClientServer) SetAnyRequestHandler(_param0 wsclient.RequestHandler)
- func (_m *MockClientServer) SetConnection(_param0 wsclient.WebsocketConn)
- func (_m *MockClientServer) WriteMessage(_param0 []byte) error
- type MockWebsocketConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClientServer ¶
type MockClientServer struct {
// contains filtered or unexported fields
}
Mock of ClientServer interface
func NewMockClientServer ¶
func NewMockClientServer(ctrl *gomock.Controller) *MockClientServer
func (*MockClientServer) AddRequestHandler ¶
func (_m *MockClientServer) AddRequestHandler(_param0 wsclient.RequestHandler)
func (*MockClientServer) Close ¶
func (_m *MockClientServer) Close() error
func (*MockClientServer) Connect ¶
func (_m *MockClientServer) Connect() error
func (*MockClientServer) Disconnect ¶ added in v1.11.1
func (_m *MockClientServer) Disconnect(_param0 ...interface{}) error
func (*MockClientServer) EXPECT ¶
func (_m *MockClientServer) EXPECT() *_MockClientServerRecorder
func (*MockClientServer) IsConnected ¶ added in v1.14.1
func (_m *MockClientServer) IsConnected() bool
func (*MockClientServer) MakeRequest ¶
func (_m *MockClientServer) MakeRequest(_param0 interface{}) error
func (*MockClientServer) Serve ¶
func (_m *MockClientServer) Serve() error
func (*MockClientServer) SetAnyRequestHandler ¶ added in v1.3.1
func (_m *MockClientServer) SetAnyRequestHandler(_param0 wsclient.RequestHandler)
func (*MockClientServer) SetConnection ¶ added in v1.14.1
func (_m *MockClientServer) SetConnection(_param0 wsclient.WebsocketConn)
func (*MockClientServer) WriteMessage ¶ added in v1.14.1
func (_m *MockClientServer) WriteMessage(_param0 []byte) error
type MockWebsocketConn ¶ added in v1.14.4
type MockWebsocketConn struct {
// contains filtered or unexported fields
}
Mock of WebsocketConn interface
func NewMockWebsocketConn ¶ added in v1.14.4
func NewMockWebsocketConn(ctrl *gomock.Controller) *MockWebsocketConn
func (*MockWebsocketConn) Close ¶ added in v1.14.4
func (_m *MockWebsocketConn) Close() error
func (*MockWebsocketConn) EXPECT ¶ added in v1.14.4
func (_m *MockWebsocketConn) EXPECT() *_MockWebsocketConnRecorder
func (*MockWebsocketConn) ReadMessage ¶ added in v1.14.4
func (_m *MockWebsocketConn) ReadMessage() (int, []byte, error)
func (*MockWebsocketConn) WriteMessage ¶ added in v1.14.4
func (_m *MockWebsocketConn) WriteMessage(_param0 int, _param1 []byte) error
Click to show internal directories.
Click to hide internal directories.