mocks

package
v0.7.0-rc1-blackbox-me... Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

func (m *MockModule) BandwidthForPeer(arg0 context.Context, arg1 peer.ID) (metrics.Stats, error)

BandwidthForPeer mocks base method.

func (*MockModule) BandwidthForProtocol

func (m *MockModule) BandwidthForProtocol(arg0 context.Context, arg1 protocol.ID) (metrics.Stats, error)

BandwidthForProtocol mocks base method.

func (*MockModule) BandwidthStats

func (m *MockModule) BandwidthStats(arg0 context.Context) (metrics.Stats, error)

BandwidthStats mocks base method.

func (*MockModule) BlockPeer

func (m *MockModule) BlockPeer(arg0 context.Context, arg1 peer.ID) error

BlockPeer mocks base method.

func (*MockModule) ClosePeer

func (m *MockModule) ClosePeer(arg0 context.Context, arg1 peer.ID) error

ClosePeer mocks base method.

func (*MockModule) Connect

func (m *MockModule) Connect(arg0 context.Context, arg1 peer.AddrInfo) error

Connect mocks base method.

func (*MockModule) Connectedness

func (m *MockModule) Connectedness(arg0 context.Context, arg1 peer.ID) (network.Connectedness, error)

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, error)

Info mocks base method.

func (*MockModule) IsProtected

func (m *MockModule) IsProtected(arg0 context.Context, arg1 peer.ID, arg2 string) (bool, error)

IsProtected mocks base method.

func (*MockModule) ListBlockedPeers

func (m *MockModule) ListBlockedPeers(arg0 context.Context) ([]peer.ID, error)

ListBlockedPeers mocks base method.

func (*MockModule) NATStatus

func (m *MockModule) NATStatus(arg0 context.Context) (network.Reachability, error)

NATStatus mocks base method.

func (*MockModule) PeerInfo

func (m *MockModule) PeerInfo(arg0 context.Context, arg1 peer.ID) (peer.AddrInfo, error)

PeerInfo mocks base method.

func (*MockModule) Peers

func (m *MockModule) Peers(arg0 context.Context) ([]peer.ID, error)

Peers mocks base method.

func (*MockModule) Protect

func (m *MockModule) Protect(arg0 context.Context, arg1 peer.ID, arg2 string) error

Protect mocks base method.

func (*MockModule) PubSubPeers

func (m *MockModule) PubSubPeers(arg0 context.Context, arg1 string) ([]peer.ID, error)

PubSubPeers mocks base method.

func (*MockModule) ResourceState

func (m *MockModule) ResourceState(arg0 context.Context) (rcmgr.ResourceManagerStat, error)

ResourceState mocks base method.

func (*MockModule) UnblockPeer

func (m *MockModule) UnblockPeer(arg0 context.Context, arg1 peer.ID) error

UnblockPeer mocks base method.

func (*MockModule) Unprotect

func (m *MockModule) Unprotect(arg0 context.Context, arg1 peer.ID, arg2 string) (bool, error)

Unprotect 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.

Jump to

Keyboard shortcuts

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