Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockModule
- func (m *MockModule) BandwidthForPeer(arg0 context.Context, arg1 peer.ID) metrics.Stats
- func (m *MockModule) BandwidthForProtocol(arg0 context.Context, arg1 protocol.ID) metrics.Stats
- func (m *MockModule) BandwidthStats(arg0 context.Context) metrics.Stats
- func (m *MockModule) BlockPeer(arg0 context.Context, arg1 peer.ID) error
- func (m *MockModule) ClosePeer(arg0 context.Context, arg1 peer.ID) error
- func (m *MockModule) Connect(arg0 context.Context, arg1 peer.AddrInfo) error
- func (m *MockModule) Connectedness(arg0 context.Context, arg1 peer.ID) network.Connectedness
- func (m *MockModule) EXPECT() *MockModuleMockRecorder
- func (m *MockModule) Info(arg0 context.Context) peer.AddrInfo
- func (m *MockModule) IsProtected(arg0 context.Context, arg1 peer.ID, arg2 string) bool
- func (m *MockModule) ListBlockedPeers(arg0 context.Context) []peer.ID
- func (m *MockModule) NATStatus(arg0 context.Context) (network.Reachability, error)
- func (m *MockModule) PeerInfo(arg0 context.Context, arg1 peer.ID) peer.AddrInfo
- func (m *MockModule) Peers(arg0 context.Context) []peer.ID
- func (m *MockModule) Protect(arg0 context.Context, arg1 peer.ID, arg2 string)
- func (m *MockModule) PubSubPeers(arg0 context.Context, arg1 string) []peer.ID
- func (m *MockModule) ResourceState(arg0 context.Context) (rcmgr.ResourceManagerStat, error)
- func (m *MockModule) UnblockPeer(arg0 context.Context, arg1 peer.ID) error
- func (m *MockModule) Unprotect(arg0 context.Context, arg1 peer.ID, arg2 string) bool
- type MockModuleMockRecorder
- func (mr *MockModuleMockRecorder) BandwidthForPeer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) BandwidthForProtocol(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) BandwidthStats(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) BlockPeer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) ClosePeer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) Connect(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) Connectedness(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) Info(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) IsProtected(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) ListBlockedPeers(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) NATStatus(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) PeerInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) Peers(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) Protect(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) PubSubPeers(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) ResourceState(arg0 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) UnblockPeer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModuleMockRecorder) Unprotect(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockModule ¶
type MockModule struct {
// contains filtered or unexported fields
}
MockModule is a mock of Module interface.
func NewMockModule ¶
func NewMockModule(ctrl *gomock.Controller) *MockModule
NewMockModule creates a new mock instance.
func (*MockModule) BandwidthForPeer ¶
BandwidthForPeer mocks base method.
func (*MockModule) BandwidthForProtocol ¶
BandwidthForProtocol mocks base method.
func (*MockModule) BandwidthStats ¶
func (m *MockModule) BandwidthStats(arg0 context.Context) metrics.Stats
BandwidthStats mocks base method.
func (*MockModule) Connectedness ¶
func (m *MockModule) Connectedness(arg0 context.Context, arg1 peer.ID) network.Connectedness
Connectedness mocks base method.
func (*MockModule) EXPECT ¶
func (m *MockModule) EXPECT() *MockModuleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModule) Info ¶
func (m *MockModule) Info(arg0 context.Context) peer.AddrInfo
Info mocks base method.
func (*MockModule) IsProtected ¶
IsProtected mocks base method.
func (*MockModule) ListBlockedPeers ¶
func (m *MockModule) ListBlockedPeers(arg0 context.Context) []peer.ID
ListBlockedPeers mocks base method.
func (*MockModule) NATStatus ¶
func (m *MockModule) NATStatus(arg0 context.Context) (network.Reachability, error)
NATStatus mocks base method.
func (*MockModule) Peers ¶
func (m *MockModule) Peers(arg0 context.Context) []peer.ID
Peers mocks base method.
func (*MockModule) PubSubPeers ¶
PubSubPeers mocks base method.
func (*MockModule) ResourceState ¶
func (m *MockModule) ResourceState(arg0 context.Context) (rcmgr.ResourceManagerStat, error)
ResourceState mocks base method.
func (*MockModule) UnblockPeer ¶
UnblockPeer mocks base method.
type MockModuleMockRecorder ¶
type MockModuleMockRecorder struct {
// contains filtered or unexported fields
}
MockModuleMockRecorder is the mock recorder for MockModule.
func (*MockModuleMockRecorder) BandwidthForPeer ¶
func (mr *MockModuleMockRecorder) BandwidthForPeer(arg0, arg1 interface{}) *gomock.Call
BandwidthForPeer indicates an expected call of BandwidthForPeer.
func (*MockModuleMockRecorder) BandwidthForProtocol ¶
func (mr *MockModuleMockRecorder) BandwidthForProtocol(arg0, arg1 interface{}) *gomock.Call
BandwidthForProtocol indicates an expected call of BandwidthForProtocol.
func (*MockModuleMockRecorder) BandwidthStats ¶
func (mr *MockModuleMockRecorder) BandwidthStats(arg0 interface{}) *gomock.Call
BandwidthStats indicates an expected call of BandwidthStats.
func (*MockModuleMockRecorder) BlockPeer ¶
func (mr *MockModuleMockRecorder) BlockPeer(arg0, arg1 interface{}) *gomock.Call
BlockPeer indicates an expected call of BlockPeer.
func (*MockModuleMockRecorder) ClosePeer ¶
func (mr *MockModuleMockRecorder) ClosePeer(arg0, arg1 interface{}) *gomock.Call
ClosePeer indicates an expected call of ClosePeer.
func (*MockModuleMockRecorder) Connect ¶
func (mr *MockModuleMockRecorder) Connect(arg0, arg1 interface{}) *gomock.Call
Connect indicates an expected call of Connect.
func (*MockModuleMockRecorder) Connectedness ¶
func (mr *MockModuleMockRecorder) Connectedness(arg0, arg1 interface{}) *gomock.Call
Connectedness indicates an expected call of Connectedness.
func (*MockModuleMockRecorder) Info ¶
func (mr *MockModuleMockRecorder) Info(arg0 interface{}) *gomock.Call
Info indicates an expected call of Info.
func (*MockModuleMockRecorder) IsProtected ¶
func (mr *MockModuleMockRecorder) IsProtected(arg0, arg1, arg2 interface{}) *gomock.Call
IsProtected indicates an expected call of IsProtected.
func (*MockModuleMockRecorder) ListBlockedPeers ¶
func (mr *MockModuleMockRecorder) ListBlockedPeers(arg0 interface{}) *gomock.Call
ListBlockedPeers indicates an expected call of ListBlockedPeers.
func (*MockModuleMockRecorder) NATStatus ¶
func (mr *MockModuleMockRecorder) NATStatus(arg0 interface{}) *gomock.Call
NATStatus indicates an expected call of NATStatus.
func (*MockModuleMockRecorder) PeerInfo ¶
func (mr *MockModuleMockRecorder) PeerInfo(arg0, arg1 interface{}) *gomock.Call
PeerInfo indicates an expected call of PeerInfo.
func (*MockModuleMockRecorder) Peers ¶
func (mr *MockModuleMockRecorder) Peers(arg0 interface{}) *gomock.Call
Peers indicates an expected call of Peers.
func (*MockModuleMockRecorder) Protect ¶
func (mr *MockModuleMockRecorder) Protect(arg0, arg1, arg2 interface{}) *gomock.Call
Protect indicates an expected call of Protect.
func (*MockModuleMockRecorder) PubSubPeers ¶
func (mr *MockModuleMockRecorder) PubSubPeers(arg0, arg1 interface{}) *gomock.Call
PubSubPeers indicates an expected call of PubSubPeers.
func (*MockModuleMockRecorder) ResourceState ¶
func (mr *MockModuleMockRecorder) ResourceState(arg0 interface{}) *gomock.Call
ResourceState indicates an expected call of ResourceState.
func (*MockModuleMockRecorder) UnblockPeer ¶
func (mr *MockModuleMockRecorder) UnblockPeer(arg0, arg1 interface{}) *gomock.Call
UnblockPeer indicates an expected call of UnblockPeer.
func (*MockModuleMockRecorder) Unprotect ¶
func (mr *MockModuleMockRecorder) Unprotect(arg0, arg1, arg2 interface{}) *gomock.Call
Unprotect indicates an expected call of Unprotect.