Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetReadChannel() <-chan []byte
- func (m *MockClient) GetReadErrorChannel() <-chan error
- func (m *MockClient) GetReconnectCount() int64
- func (m *MockClient) Wait(timeout time.Duration)
- func (m *MockClient) Write(id string, data []byte) error
- func (m *MockClient) WriteSync(id string, data []byte, timeout time.Duration) ([]byte, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) GetReadChannel() *gomock.Call
- func (mr *MockClientMockRecorder) GetReadErrorChannel() *gomock.Call
- func (mr *MockClientMockRecorder) GetReconnectCount() *gomock.Call
- func (mr *MockClientMockRecorder) Wait(timeout interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Write(id, data interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) WriteSync(id, data, timeout interface{}) *gomock.Call
- type MockConnection
- type MockConnectionMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetReadChannel ¶
func (m *MockClient) GetReadChannel() <-chan []byte
GetReadChannel mocks base method.
func (*MockClient) GetReadErrorChannel ¶
func (m *MockClient) GetReadErrorChannel() <-chan error
GetReadErrorChannel mocks base method.
func (*MockClient) GetReconnectCount ¶
func (m *MockClient) GetReconnectCount() int64
GetReconnectCount mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) GetReadChannel ¶
func (mr *MockClientMockRecorder) GetReadChannel() *gomock.Call
GetReadChannel indicates an expected call of GetReadChannel.
func (*MockClientMockRecorder) GetReadErrorChannel ¶
func (mr *MockClientMockRecorder) GetReadErrorChannel() *gomock.Call
GetReadErrorChannel indicates an expected call of GetReadErrorChannel.
func (*MockClientMockRecorder) GetReconnectCount ¶
func (mr *MockClientMockRecorder) GetReconnectCount() *gomock.Call
GetReconnectCount indicates an expected call of GetReconnectCount.
func (*MockClientMockRecorder) Wait ¶
func (mr *MockClientMockRecorder) Wait(timeout interface{}) *gomock.Call
Wait indicates an expected call of Wait.
func (*MockClientMockRecorder) Write ¶
func (mr *MockClientMockRecorder) Write(id, data interface{}) *gomock.Call
Write indicates an expected call of Write.
func (*MockClientMockRecorder) WriteSync ¶
func (mr *MockClientMockRecorder) WriteSync(id, data, timeout interface{}) *gomock.Call
WriteSync indicates an expected call of WriteSync.
type MockConnection ¶
type MockConnection struct {
// contains filtered or unexported fields
}
MockConnection is a mock of Connection interface.
func NewMockConnection ¶
func NewMockConnection(ctrl *gomock.Controller) *MockConnection
NewMockConnection creates a new mock instance.
func (*MockConnection) EXPECT ¶
func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnection) ReadMessage ¶
func (m *MockConnection) ReadMessage() (int, []byte, error)
ReadMessage mocks base method.
func (*MockConnection) RestoreConnection ¶
func (m *MockConnection) RestoreConnection() (websocket.Connection, error)
RestoreConnection mocks base method.
func (*MockConnection) WriteMessage ¶
func (m *MockConnection) WriteMessage(messageType int, data []byte) error
WriteMessage mocks base method.
type MockConnectionMockRecorder ¶
type MockConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionMockRecorder is the mock recorder for MockConnection.
func (*MockConnectionMockRecorder) ReadMessage ¶
func (mr *MockConnectionMockRecorder) ReadMessage() *gomock.Call
ReadMessage indicates an expected call of ReadMessage.
func (*MockConnectionMockRecorder) RestoreConnection ¶
func (mr *MockConnectionMockRecorder) RestoreConnection() *gomock.Call
RestoreConnection indicates an expected call of RestoreConnection.
func (*MockConnectionMockRecorder) WriteMessage ¶
func (mr *MockConnectionMockRecorder) WriteMessage(messageType, data interface{}) *gomock.Call
WriteMessage indicates an expected call of WriteMessage.