Documentation ¶
Overview ¶
Package mock_peermanager is a generated GoMock package.
Index ¶
- type MockPeerManager
- func (m *MockPeerManager) Broadcast(arg0 context.Context, arg1 *spacesyncproto.ObjectSyncMessage) error
- func (m *MockPeerManager) EXPECT() *MockPeerManagerMockRecorder
- 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) SendPeer(arg0 context.Context, arg1 string, arg2 *spacesyncproto.ObjectSyncMessage) error
- type MockPeerManagerMockRecorder
- func (mr *MockPeerManagerMockRecorder) Broadcast(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) GetResponsiblePeers(arg0 interface{}) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) Init(arg0 interface{}) *gomock.Call
- func (mr *MockPeerManagerMockRecorder) Name() *gomock.Call
- func (mr *MockPeerManagerMockRecorder) SendPeer(arg0, arg1, arg2 interface{}) *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) Broadcast ¶
func (m *MockPeerManager) Broadcast(arg0 context.Context, arg1 *spacesyncproto.ObjectSyncMessage) error
Broadcast 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) 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) SendPeer ¶
func (m *MockPeerManager) SendPeer(arg0 context.Context, arg1 string, arg2 *spacesyncproto.ObjectSyncMessage) error
SendPeer mocks base method.
type MockPeerManagerMockRecorder ¶
type MockPeerManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockPeerManagerMockRecorder is the mock recorder for MockPeerManager.
func (*MockPeerManagerMockRecorder) Broadcast ¶
func (mr *MockPeerManagerMockRecorder) Broadcast(arg0, arg1 interface{}) *gomock.Call
Broadcast indicates an expected call of Broadcast.
func (*MockPeerManagerMockRecorder) GetResponsiblePeers ¶
func (mr *MockPeerManagerMockRecorder) GetResponsiblePeers(arg0 interface{}) *gomock.Call
GetResponsiblePeers indicates an expected call of GetResponsiblePeers.
func (*MockPeerManagerMockRecorder) Init ¶ added in v0.2.0
func (mr *MockPeerManagerMockRecorder) Init(arg0 interface{}) *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) SendPeer ¶
func (mr *MockPeerManagerMockRecorder) SendPeer(arg0, arg1, arg2 interface{}) *gomock.Call
SendPeer indicates an expected call of SendPeer.