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