Documentation ¶
Overview ¶
Package mock_peermanager is a generated GoMock package.
Index ¶
- type MockPeerManager
- func (m *MockPeerManager) BroadcastMessage(arg0 context.Context, arg1 drpc.Message) error
- func (m *MockPeerManager) EXPECT() *MockPeerManagerMockRecorder
- func (m *MockPeerManager) GetNodePeers(arg0 context.Context) ([]peer.Peer, error)
- func (m *MockPeerManager) GetResponsiblePeers(arg0 context.Context) ([]peer.Peer, error)
- func (m *MockPeerManager) Init(arg0 *app.App) error
- func (m *MockPeerManager) Name() string
- func (m *MockPeerManager) SendMessage(arg0 context.Context, arg1 string, arg2 drpc.Message) error
- type MockPeerManagerMockRecorder
- func (mr *MockPeerManagerMockRecorder) BroadcastMessage(arg0, arg1 any) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) GetNodePeers(arg0 any) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) GetResponsiblePeers(arg0 any) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) Init(arg0 any) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) Name() *gomock.Call
- func (mr *MockPeerManagerMockRecorder) SendMessage(arg0, arg1, arg2 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(arg0 *app.App) error
Init 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(arg0, arg1 any) *gomock.Call
BroadcastMessage indicates an expected call of BroadcastMessage.
func (*MockPeerManagerMockRecorder) GetNodePeers ¶ added in v0.2.15
func (mr *MockPeerManagerMockRecorder) GetNodePeers(arg0 any) *gomock.Call
GetNodePeers indicates an expected call of GetNodePeers.
func (*MockPeerManagerMockRecorder) GetResponsiblePeers ¶
func (mr *MockPeerManagerMockRecorder) GetResponsiblePeers(arg0 any) *gomock.Call
GetResponsiblePeers indicates an expected call of GetResponsiblePeers.
func (*MockPeerManagerMockRecorder) Init ¶ added in v0.2.0
func (mr *MockPeerManagerMockRecorder) Init(arg0 any) *gomock.Call
Init indicates an expected call of Init.
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(arg0, arg1, arg2 any) *gomock.Call
SendMessage indicates an expected call of SendMessage.