Documentation ¶
Overview ¶
Package mock_peermanager is a generated GoMock package.
Index ¶
- type MockPeerManager
- func (m *MockPeerManager) BroadcastMessage(ctx context.Context, msg drpc.Message) error
- func (m *MockPeerManager) EXPECT() *MockPeerManagerMockRecorder
- func (m *MockPeerManager) GetNodePeers(ctx context.Context) ([]peer.Peer, error)
- func (m *MockPeerManager) GetResponsiblePeers(ctx context.Context) ([]peer.Peer, error)
- func (m *MockPeerManager) Init(a *app.App) error
- func (m *MockPeerManager) KeepAlive(ctx context.Context)
- func (m *MockPeerManager) Name() string
- func (m *MockPeerManager) SendMessage(ctx context.Context, peerId string, msg drpc.Message) error
- type MockPeerManagerMockRecorder
- func (mr *MockPeerManagerMockRecorder) BroadcastMessage(ctx, msg any) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) GetNodePeers(ctx any) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) GetResponsiblePeers(ctx any) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) Init(a any) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) KeepAlive(ctx any) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) Name() *gomock.Call
- func (mr *MockPeerManagerMockRecorder) SendMessage(ctx, peerId, msg any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPeerManager ¶
type MockPeerManager struct {
// contains filtered or unexported fields
}
MockPeerManager is a mock of PeerManager interface.
func NewMockPeerManager ¶
func NewMockPeerManager(ctrl *gomock.Controller) *MockPeerManager
NewMockPeerManager creates a new mock instance.
func (*MockPeerManager) BroadcastMessage ¶ added in v0.5.0
BroadcastMessage mocks base method.
func (*MockPeerManager) EXPECT ¶
func (m *MockPeerManager) EXPECT() *MockPeerManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPeerManager) GetNodePeers ¶ added in v0.2.15
GetNodePeers mocks base method.
func (*MockPeerManager) GetResponsiblePeers ¶
GetResponsiblePeers mocks base method.
func (*MockPeerManager) Init ¶ added in v0.2.0
func (m *MockPeerManager) Init(a *app.App) error
Init mocks base method.
func (*MockPeerManager) KeepAlive ¶ added in v0.5.18
func (m *MockPeerManager) KeepAlive(ctx context.Context)
KeepAlive mocks base method.
func (*MockPeerManager) Name ¶ added in v0.2.0
func (m *MockPeerManager) Name() string
Name mocks base method.
func (*MockPeerManager) SendMessage ¶ added in v0.5.0
SendMessage mocks base method.
type MockPeerManagerMockRecorder ¶
type MockPeerManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockPeerManagerMockRecorder is the mock recorder for MockPeerManager.
func (*MockPeerManagerMockRecorder) BroadcastMessage ¶ added in v0.5.0
func (mr *MockPeerManagerMockRecorder) BroadcastMessage(ctx, msg any) *gomock.Call
BroadcastMessage indicates an expected call of BroadcastMessage.
func (*MockPeerManagerMockRecorder) GetNodePeers ¶ added in v0.2.15
func (mr *MockPeerManagerMockRecorder) GetNodePeers(ctx any) *gomock.Call
GetNodePeers indicates an expected call of GetNodePeers.
func (*MockPeerManagerMockRecorder) GetResponsiblePeers ¶
func (mr *MockPeerManagerMockRecorder) GetResponsiblePeers(ctx any) *gomock.Call
GetResponsiblePeers indicates an expected call of GetResponsiblePeers.
func (*MockPeerManagerMockRecorder) Init ¶ added in v0.2.0
func (mr *MockPeerManagerMockRecorder) Init(a any) *gomock.Call
Init indicates an expected call of Init.
func (*MockPeerManagerMockRecorder) KeepAlive ¶ added in v0.5.18
func (mr *MockPeerManagerMockRecorder) KeepAlive(ctx any) *gomock.Call
KeepAlive indicates an expected call of KeepAlive.
func (*MockPeerManagerMockRecorder) Name ¶ added in v0.2.0
func (mr *MockPeerManagerMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockPeerManagerMockRecorder) SendMessage ¶ added in v0.5.0
func (mr *MockPeerManagerMockRecorder) SendMessage(ctx, peerId, msg any) *gomock.Call
SendMessage indicates an expected call of SendMessage.