Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/anyproto/any-sync/commonspace/peermanager (interfaces: PeerManager)
Generated by this command:
mockgen -destination mock_peermanager/mock_peermanager.go github.com/anyproto/any-sync/commonspace/peermanager PeerManager
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) 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) SendPeer(arg0 context.Context, arg1 string, arg2 *spacesyncproto.ObjectSyncMessage) error
- type MockPeerManagerMockRecorder
- func (mr *MockPeerManagerMockRecorder) Broadcast(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) SendPeer(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) 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) 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) 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 any) *gomock.Call
Broadcast indicates an expected call of Broadcast.
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.