mock_peermanager

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 6 Imported by: 0

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

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

Broadcast mocks base method.

func (*MockPeerManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPeerManager) GetNodePeers added in v0.2.15

func (m *MockPeerManager) GetNodePeers(arg0 context.Context) ([]peer.Peer, error)

GetNodePeers mocks base method.

func (*MockPeerManager) GetResponsiblePeers

func (m *MockPeerManager) GetResponsiblePeers(arg0 context.Context) ([]peer.Peer, error)

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

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

Name indicates an expected call of Name.

func (*MockPeerManagerMockRecorder) SendPeer

func (mr *MockPeerManagerMockRecorder) SendPeer(arg0, arg1, arg2 any) *gomock.Call

SendPeer indicates an expected call of SendPeer.

Jump to

Keyboard shortcuts

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