mock_comm

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2025 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_comm is a generated GoMock package.

Index

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL