Documentation
¶
Overview ¶
Package mock_comm is a generated GoMock package.
Index ¶
- type MockCommunication
- func (m *MockCommunication) Broadcast(peers peer.IDSlice, msg []byte, msgType comm.MessageType, sessionID string) error
- func (m *MockCommunication) CloseSession(sessionID string)
- func (m *MockCommunication) EXPECT() *MockCommunicationMockRecorder
- func (m *MockCommunication) Subscribe(sessionID string, msgType comm.MessageType, channel chan *comm.WrappedMessage) comm.SubscriptionID
- func (m *MockCommunication) UnSubscribe(subID comm.SubscriptionID)
- type MockCommunicationMockRecorder
- func (mr *MockCommunicationMockRecorder) Broadcast(peers, msg, msgType, sessionID any) *gomock.Call
- func (mr *MockCommunicationMockRecorder) CloseSession(sessionID any) *gomock.Call
- func (mr *MockCommunicationMockRecorder) Subscribe(sessionID, msgType, channel any) *gomock.Call
- func (mr *MockCommunicationMockRecorder) UnSubscribe(subID any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommunication ¶
type MockCommunication struct {
// contains filtered or unexported fields
}
MockCommunication is a mock of Communication interface.
func NewMockCommunication ¶
func NewMockCommunication(ctrl *gomock.Controller) *MockCommunication
NewMockCommunication creates a new mock instance.
func (*MockCommunication) Broadcast ¶
func (m *MockCommunication) Broadcast(peers peer.IDSlice, msg []byte, msgType comm.MessageType, sessionID string) error
Broadcast mocks base method.
func (*MockCommunication) CloseSession ¶
func (m *MockCommunication) CloseSession(sessionID string)
CloseSession mocks base method.
func (*MockCommunication) EXPECT ¶
func (m *MockCommunication) EXPECT() *MockCommunicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommunication) Subscribe ¶
func (m *MockCommunication) Subscribe(sessionID string, msgType comm.MessageType, channel chan *comm.WrappedMessage) comm.SubscriptionID
Subscribe mocks base method.
func (*MockCommunication) UnSubscribe ¶
func (m *MockCommunication) UnSubscribe(subID comm.SubscriptionID)
UnSubscribe mocks base method.
type MockCommunicationMockRecorder ¶
type MockCommunicationMockRecorder struct {
// contains filtered or unexported fields
}
MockCommunicationMockRecorder is the mock recorder for MockCommunication.
func (*MockCommunicationMockRecorder) Broadcast ¶
func (mr *MockCommunicationMockRecorder) Broadcast(peers, msg, msgType, sessionID any) *gomock.Call
Broadcast indicates an expected call of Broadcast.
func (*MockCommunicationMockRecorder) CloseSession ¶
func (mr *MockCommunicationMockRecorder) CloseSession(sessionID any) *gomock.Call
CloseSession indicates an expected call of CloseSession.
func (*MockCommunicationMockRecorder) Subscribe ¶
func (mr *MockCommunicationMockRecorder) Subscribe(sessionID, msgType, channel any) *gomock.Call
Subscribe indicates an expected call of Subscribe.
func (*MockCommunicationMockRecorder) UnSubscribe ¶
func (mr *MockCommunicationMockRecorder) UnSubscribe(subID any) *gomock.Call
UnSubscribe indicates an expected call of UnSubscribe.