Documentation ¶
Index ¶
- type API
- func (_m *API) BlockAddr(ctx context.Context, ip net.IP) error
- func (_m *API) BlockPeer(ctx context.Context, p peer.ID) error
- func (_m *API) BlockSubnet(ctx context.Context, ipnet *net.IPNet) error
- func (_m *API) ConnectPeer(ctx context.Context, addr string) error
- func (_m *API) DisconnectPeer(ctx context.Context, id peer.ID) error
- func (_m *API) DiscoveryTable(ctx context.Context) ([]*enode.Node, error)
- func (_m *API) EXPECT() *API_Expecter
- func (_m *API) ListBlockedAddrs(ctx context.Context) ([]net.IP, error)
- func (_m *API) ListBlockedPeers(ctx context.Context) ([]peer.ID, error)
- func (_m *API) ListBlockedSubnets(ctx context.Context) ([]*net.IPNet, error)
- func (_m *API) PeerStats(ctx context.Context) (*p2p.PeerStats, error)
- func (_m *API) Peers(ctx context.Context, connected bool) (*p2p.PeerDump, error)
- func (_m *API) ProtectPeer(ctx context.Context, p peer.ID) error
- func (_m *API) Self(ctx context.Context) (*p2p.PeerInfo, error)
- func (_m *API) UnblockAddr(ctx context.Context, ip net.IP) error
- func (_m *API) UnblockPeer(ctx context.Context, p peer.ID) error
- func (_m *API) UnblockSubnet(ctx context.Context, ipnet *net.IPNet) error
- func (_m *API) UnprotectPeer(ctx context.Context, p peer.ID) error
- type API_BlockAddr_Call
- type API_BlockPeer_Call
- type API_BlockSubnet_Call
- type API_ConnectPeer_Call
- type API_DisconnectPeer_Call
- type API_DiscoveryTable_Call
- func (_c *API_DiscoveryTable_Call) Return(_a0 []*enode.Node, _a1 error) *API_DiscoveryTable_Call
- func (_c *API_DiscoveryTable_Call) Run(run func(ctx context.Context)) *API_DiscoveryTable_Call
- func (_c *API_DiscoveryTable_Call) RunAndReturn(run func(context.Context) ([]*enode.Node, error)) *API_DiscoveryTable_Call
- type API_Expecter
- func (_e *API_Expecter) BlockAddr(ctx interface{}, ip interface{}) *API_BlockAddr_Call
- func (_e *API_Expecter) BlockPeer(ctx interface{}, p interface{}) *API_BlockPeer_Call
- func (_e *API_Expecter) BlockSubnet(ctx interface{}, ipnet interface{}) *API_BlockSubnet_Call
- func (_e *API_Expecter) ConnectPeer(ctx interface{}, addr interface{}) *API_ConnectPeer_Call
- func (_e *API_Expecter) DisconnectPeer(ctx interface{}, id interface{}) *API_DisconnectPeer_Call
- func (_e *API_Expecter) DiscoveryTable(ctx interface{}) *API_DiscoveryTable_Call
- func (_e *API_Expecter) ListBlockedAddrs(ctx interface{}) *API_ListBlockedAddrs_Call
- func (_e *API_Expecter) ListBlockedPeers(ctx interface{}) *API_ListBlockedPeers_Call
- func (_e *API_Expecter) ListBlockedSubnets(ctx interface{}) *API_ListBlockedSubnets_Call
- func (_e *API_Expecter) PeerStats(ctx interface{}) *API_PeerStats_Call
- func (_e *API_Expecter) Peers(ctx interface{}, connected interface{}) *API_Peers_Call
- func (_e *API_Expecter) ProtectPeer(ctx interface{}, p interface{}) *API_ProtectPeer_Call
- func (_e *API_Expecter) Self(ctx interface{}) *API_Self_Call
- func (_e *API_Expecter) UnblockAddr(ctx interface{}, ip interface{}) *API_UnblockAddr_Call
- func (_e *API_Expecter) UnblockPeer(ctx interface{}, p interface{}) *API_UnblockPeer_Call
- func (_e *API_Expecter) UnblockSubnet(ctx interface{}, ipnet interface{}) *API_UnblockSubnet_Call
- func (_e *API_Expecter) UnprotectPeer(ctx interface{}, p interface{}) *API_UnprotectPeer_Call
- type API_ListBlockedAddrs_Call
- func (_c *API_ListBlockedAddrs_Call) Return(_a0 []net.IP, _a1 error) *API_ListBlockedAddrs_Call
- func (_c *API_ListBlockedAddrs_Call) Run(run func(ctx context.Context)) *API_ListBlockedAddrs_Call
- func (_c *API_ListBlockedAddrs_Call) RunAndReturn(run func(context.Context) ([]net.IP, error)) *API_ListBlockedAddrs_Call
- type API_ListBlockedPeers_Call
- func (_c *API_ListBlockedPeers_Call) Return(_a0 []peer.ID, _a1 error) *API_ListBlockedPeers_Call
- func (_c *API_ListBlockedPeers_Call) Run(run func(ctx context.Context)) *API_ListBlockedPeers_Call
- func (_c *API_ListBlockedPeers_Call) RunAndReturn(run func(context.Context) ([]peer.ID, error)) *API_ListBlockedPeers_Call
- type API_ListBlockedSubnets_Call
- func (_c *API_ListBlockedSubnets_Call) Return(_a0 []*net.IPNet, _a1 error) *API_ListBlockedSubnets_Call
- func (_c *API_ListBlockedSubnets_Call) Run(run func(ctx context.Context)) *API_ListBlockedSubnets_Call
- func (_c *API_ListBlockedSubnets_Call) RunAndReturn(run func(context.Context) ([]*net.IPNet, error)) *API_ListBlockedSubnets_Call
- type API_PeerStats_Call
- type API_Peers_Call
- type API_ProtectPeer_Call
- type API_Self_Call
- type API_UnblockAddr_Call
- type API_UnblockPeer_Call
- type API_UnblockSubnet_Call
- func (_c *API_UnblockSubnet_Call) Return(_a0 error) *API_UnblockSubnet_Call
- func (_c *API_UnblockSubnet_Call) Run(run func(ctx context.Context, ipnet *net.IPNet)) *API_UnblockSubnet_Call
- func (_c *API_UnblockSubnet_Call) RunAndReturn(run func(context.Context, *net.IPNet) error) *API_UnblockSubnet_Call
- type API_UnprotectPeer_Call
- type GossipMetricer
- type PeerGater
- type Peerstore
- type ScoreMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an autogenerated mock type for the API type
func NewAPI ¶
func NewAPI(t mockConstructorTestingTNewAPI) *API
NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*API) BlockSubnet ¶
BlockSubnet provides a mock function with given fields: ctx, ipnet
func (*API) ConnectPeer ¶
ConnectPeer provides a mock function with given fields: ctx, addr
func (*API) DisconnectPeer ¶
DisconnectPeer provides a mock function with given fields: ctx, id
func (*API) DiscoveryTable ¶
DiscoveryTable provides a mock function with given fields: ctx
func (*API) EXPECT ¶
func (_m *API) EXPECT() *API_Expecter
func (*API) ListBlockedAddrs ¶
ListBlockedAddrs provides a mock function with given fields: ctx
func (*API) ListBlockedPeers ¶
ListBlockedPeers provides a mock function with given fields: ctx
func (*API) ListBlockedSubnets ¶
ListBlockedSubnets provides a mock function with given fields: ctx
func (*API) ProtectPeer ¶
ProtectPeer provides a mock function with given fields: ctx, p
func (*API) UnblockAddr ¶
UnblockAddr provides a mock function with given fields: ctx, ip
func (*API) UnblockPeer ¶
UnblockPeer provides a mock function with given fields: ctx, p
func (*API) UnblockSubnet ¶
UnblockSubnet provides a mock function with given fields: ctx, ipnet
type API_BlockAddr_Call ¶
API_BlockAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockAddr'
func (*API_BlockAddr_Call) Return ¶
func (_c *API_BlockAddr_Call) Return(_a0 error) *API_BlockAddr_Call
func (*API_BlockAddr_Call) Run ¶
func (_c *API_BlockAddr_Call) Run(run func(ctx context.Context, ip net.IP)) *API_BlockAddr_Call
func (*API_BlockAddr_Call) RunAndReturn ¶
func (_c *API_BlockAddr_Call) RunAndReturn(run func(context.Context, net.IP) error) *API_BlockAddr_Call
type API_BlockPeer_Call ¶
API_BlockPeer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockPeer'
func (*API_BlockPeer_Call) Return ¶
func (_c *API_BlockPeer_Call) Return(_a0 error) *API_BlockPeer_Call
func (*API_BlockPeer_Call) Run ¶
func (_c *API_BlockPeer_Call) Run(run func(ctx context.Context, p peer.ID)) *API_BlockPeer_Call
func (*API_BlockPeer_Call) RunAndReturn ¶
func (_c *API_BlockPeer_Call) RunAndReturn(run func(context.Context, peer.ID) error) *API_BlockPeer_Call
type API_BlockSubnet_Call ¶
API_BlockSubnet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockSubnet'
func (*API_BlockSubnet_Call) Return ¶
func (_c *API_BlockSubnet_Call) Return(_a0 error) *API_BlockSubnet_Call
func (*API_BlockSubnet_Call) Run ¶
func (_c *API_BlockSubnet_Call) Run(run func(ctx context.Context, ipnet *net.IPNet)) *API_BlockSubnet_Call
func (*API_BlockSubnet_Call) RunAndReturn ¶
func (_c *API_BlockSubnet_Call) RunAndReturn(run func(context.Context, *net.IPNet) error) *API_BlockSubnet_Call
type API_ConnectPeer_Call ¶
API_ConnectPeer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConnectPeer'
func (*API_ConnectPeer_Call) Return ¶
func (_c *API_ConnectPeer_Call) Return(_a0 error) *API_ConnectPeer_Call
func (*API_ConnectPeer_Call) Run ¶
func (_c *API_ConnectPeer_Call) Run(run func(ctx context.Context, addr string)) *API_ConnectPeer_Call
func (*API_ConnectPeer_Call) RunAndReturn ¶
func (_c *API_ConnectPeer_Call) RunAndReturn(run func(context.Context, string) error) *API_ConnectPeer_Call
type API_DisconnectPeer_Call ¶
API_DisconnectPeer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisconnectPeer'
func (*API_DisconnectPeer_Call) Return ¶
func (_c *API_DisconnectPeer_Call) Return(_a0 error) *API_DisconnectPeer_Call
func (*API_DisconnectPeer_Call) Run ¶
func (_c *API_DisconnectPeer_Call) Run(run func(ctx context.Context, id peer.ID)) *API_DisconnectPeer_Call
func (*API_DisconnectPeer_Call) RunAndReturn ¶
func (_c *API_DisconnectPeer_Call) RunAndReturn(run func(context.Context, peer.ID) error) *API_DisconnectPeer_Call
type API_DiscoveryTable_Call ¶
API_DiscoveryTable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DiscoveryTable'
func (*API_DiscoveryTable_Call) Return ¶
func (_c *API_DiscoveryTable_Call) Return(_a0 []*enode.Node, _a1 error) *API_DiscoveryTable_Call
func (*API_DiscoveryTable_Call) Run ¶
func (_c *API_DiscoveryTable_Call) Run(run func(ctx context.Context)) *API_DiscoveryTable_Call
func (*API_DiscoveryTable_Call) RunAndReturn ¶
func (_c *API_DiscoveryTable_Call) RunAndReturn(run func(context.Context) ([]*enode.Node, error)) *API_DiscoveryTable_Call
type API_Expecter ¶
type API_Expecter struct {
// contains filtered or unexported fields
}
func (*API_Expecter) BlockAddr ¶
func (_e *API_Expecter) BlockAddr(ctx interface{}, ip interface{}) *API_BlockAddr_Call
BlockAddr is a helper method to define mock.On call
- ctx context.Context
- ip net.IP
func (*API_Expecter) BlockPeer ¶
func (_e *API_Expecter) BlockPeer(ctx interface{}, p interface{}) *API_BlockPeer_Call
BlockPeer is a helper method to define mock.On call
- ctx context.Context
- p peer.ID
func (*API_Expecter) BlockSubnet ¶
func (_e *API_Expecter) BlockSubnet(ctx interface{}, ipnet interface{}) *API_BlockSubnet_Call
BlockSubnet is a helper method to define mock.On call
- ctx context.Context
- ipnet *net.IPNet
func (*API_Expecter) ConnectPeer ¶
func (_e *API_Expecter) ConnectPeer(ctx interface{}, addr interface{}) *API_ConnectPeer_Call
ConnectPeer is a helper method to define mock.On call
- ctx context.Context
- addr string
func (*API_Expecter) DisconnectPeer ¶
func (_e *API_Expecter) DisconnectPeer(ctx interface{}, id interface{}) *API_DisconnectPeer_Call
DisconnectPeer is a helper method to define mock.On call
- ctx context.Context
- id peer.ID
func (*API_Expecter) DiscoveryTable ¶
func (_e *API_Expecter) DiscoveryTable(ctx interface{}) *API_DiscoveryTable_Call
DiscoveryTable is a helper method to define mock.On call
- ctx context.Context
func (*API_Expecter) ListBlockedAddrs ¶
func (_e *API_Expecter) ListBlockedAddrs(ctx interface{}) *API_ListBlockedAddrs_Call
ListBlockedAddrs is a helper method to define mock.On call
- ctx context.Context
func (*API_Expecter) ListBlockedPeers ¶
func (_e *API_Expecter) ListBlockedPeers(ctx interface{}) *API_ListBlockedPeers_Call
ListBlockedPeers is a helper method to define mock.On call
- ctx context.Context
func (*API_Expecter) ListBlockedSubnets ¶
func (_e *API_Expecter) ListBlockedSubnets(ctx interface{}) *API_ListBlockedSubnets_Call
ListBlockedSubnets is a helper method to define mock.On call
- ctx context.Context
func (*API_Expecter) PeerStats ¶
func (_e *API_Expecter) PeerStats(ctx interface{}) *API_PeerStats_Call
PeerStats is a helper method to define mock.On call
- ctx context.Context
func (*API_Expecter) Peers ¶
func (_e *API_Expecter) Peers(ctx interface{}, connected interface{}) *API_Peers_Call
Peers is a helper method to define mock.On call
- ctx context.Context
- connected bool
func (*API_Expecter) ProtectPeer ¶
func (_e *API_Expecter) ProtectPeer(ctx interface{}, p interface{}) *API_ProtectPeer_Call
ProtectPeer is a helper method to define mock.On call
- ctx context.Context
- p peer.ID
func (*API_Expecter) Self ¶
func (_e *API_Expecter) Self(ctx interface{}) *API_Self_Call
Self is a helper method to define mock.On call
- ctx context.Context
func (*API_Expecter) UnblockAddr ¶
func (_e *API_Expecter) UnblockAddr(ctx interface{}, ip interface{}) *API_UnblockAddr_Call
UnblockAddr is a helper method to define mock.On call
- ctx context.Context
- ip net.IP
func (*API_Expecter) UnblockPeer ¶
func (_e *API_Expecter) UnblockPeer(ctx interface{}, p interface{}) *API_UnblockPeer_Call
UnblockPeer is a helper method to define mock.On call
- ctx context.Context
- p peer.ID
func (*API_Expecter) UnblockSubnet ¶
func (_e *API_Expecter) UnblockSubnet(ctx interface{}, ipnet interface{}) *API_UnblockSubnet_Call
UnblockSubnet is a helper method to define mock.On call
- ctx context.Context
- ipnet *net.IPNet
func (*API_Expecter) UnprotectPeer ¶
func (_e *API_Expecter) UnprotectPeer(ctx interface{}, p interface{}) *API_UnprotectPeer_Call
UnprotectPeer is a helper method to define mock.On call
- ctx context.Context
- p peer.ID
type API_ListBlockedAddrs_Call ¶
API_ListBlockedAddrs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBlockedAddrs'
func (*API_ListBlockedAddrs_Call) Return ¶
func (_c *API_ListBlockedAddrs_Call) Return(_a0 []net.IP, _a1 error) *API_ListBlockedAddrs_Call
func (*API_ListBlockedAddrs_Call) Run ¶
func (_c *API_ListBlockedAddrs_Call) Run(run func(ctx context.Context)) *API_ListBlockedAddrs_Call
func (*API_ListBlockedAddrs_Call) RunAndReturn ¶
func (_c *API_ListBlockedAddrs_Call) RunAndReturn(run func(context.Context) ([]net.IP, error)) *API_ListBlockedAddrs_Call
type API_ListBlockedPeers_Call ¶
API_ListBlockedPeers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBlockedPeers'
func (*API_ListBlockedPeers_Call) Return ¶
func (_c *API_ListBlockedPeers_Call) Return(_a0 []peer.ID, _a1 error) *API_ListBlockedPeers_Call
func (*API_ListBlockedPeers_Call) Run ¶
func (_c *API_ListBlockedPeers_Call) Run(run func(ctx context.Context)) *API_ListBlockedPeers_Call
func (*API_ListBlockedPeers_Call) RunAndReturn ¶
func (_c *API_ListBlockedPeers_Call) RunAndReturn(run func(context.Context) ([]peer.ID, error)) *API_ListBlockedPeers_Call
type API_ListBlockedSubnets_Call ¶
API_ListBlockedSubnets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBlockedSubnets'
func (*API_ListBlockedSubnets_Call) Return ¶
func (_c *API_ListBlockedSubnets_Call) Return(_a0 []*net.IPNet, _a1 error) *API_ListBlockedSubnets_Call
func (*API_ListBlockedSubnets_Call) Run ¶
func (_c *API_ListBlockedSubnets_Call) Run(run func(ctx context.Context)) *API_ListBlockedSubnets_Call
func (*API_ListBlockedSubnets_Call) RunAndReturn ¶
func (_c *API_ListBlockedSubnets_Call) RunAndReturn(run func(context.Context) ([]*net.IPNet, error)) *API_ListBlockedSubnets_Call
type API_PeerStats_Call ¶
API_PeerStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PeerStats'
func (*API_PeerStats_Call) Return ¶
func (_c *API_PeerStats_Call) Return(_a0 *p2p.PeerStats, _a1 error) *API_PeerStats_Call
func (*API_PeerStats_Call) Run ¶
func (_c *API_PeerStats_Call) Run(run func(ctx context.Context)) *API_PeerStats_Call
func (*API_PeerStats_Call) RunAndReturn ¶
func (_c *API_PeerStats_Call) RunAndReturn(run func(context.Context) (*p2p.PeerStats, error)) *API_PeerStats_Call
type API_Peers_Call ¶
API_Peers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Peers'
func (*API_Peers_Call) Return ¶
func (_c *API_Peers_Call) Return(_a0 *p2p.PeerDump, _a1 error) *API_Peers_Call
func (*API_Peers_Call) Run ¶
func (_c *API_Peers_Call) Run(run func(ctx context.Context, connected bool)) *API_Peers_Call
func (*API_Peers_Call) RunAndReturn ¶
func (_c *API_Peers_Call) RunAndReturn(run func(context.Context, bool) (*p2p.PeerDump, error)) *API_Peers_Call
type API_ProtectPeer_Call ¶
API_ProtectPeer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProtectPeer'
func (*API_ProtectPeer_Call) Return ¶
func (_c *API_ProtectPeer_Call) Return(_a0 error) *API_ProtectPeer_Call
func (*API_ProtectPeer_Call) Run ¶
func (_c *API_ProtectPeer_Call) Run(run func(ctx context.Context, p peer.ID)) *API_ProtectPeer_Call
func (*API_ProtectPeer_Call) RunAndReturn ¶
func (_c *API_ProtectPeer_Call) RunAndReturn(run func(context.Context, peer.ID) error) *API_ProtectPeer_Call
type API_Self_Call ¶
API_Self_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Self'
func (*API_Self_Call) Return ¶
func (_c *API_Self_Call) Return(_a0 *p2p.PeerInfo, _a1 error) *API_Self_Call
func (*API_Self_Call) Run ¶
func (_c *API_Self_Call) Run(run func(ctx context.Context)) *API_Self_Call
func (*API_Self_Call) RunAndReturn ¶
func (_c *API_Self_Call) RunAndReturn(run func(context.Context) (*p2p.PeerInfo, error)) *API_Self_Call
type API_UnblockAddr_Call ¶
API_UnblockAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnblockAddr'
func (*API_UnblockAddr_Call) Return ¶
func (_c *API_UnblockAddr_Call) Return(_a0 error) *API_UnblockAddr_Call
func (*API_UnblockAddr_Call) Run ¶
func (_c *API_UnblockAddr_Call) Run(run func(ctx context.Context, ip net.IP)) *API_UnblockAddr_Call
func (*API_UnblockAddr_Call) RunAndReturn ¶
func (_c *API_UnblockAddr_Call) RunAndReturn(run func(context.Context, net.IP) error) *API_UnblockAddr_Call
type API_UnblockPeer_Call ¶
API_UnblockPeer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnblockPeer'
func (*API_UnblockPeer_Call) Return ¶
func (_c *API_UnblockPeer_Call) Return(_a0 error) *API_UnblockPeer_Call
func (*API_UnblockPeer_Call) Run ¶
func (_c *API_UnblockPeer_Call) Run(run func(ctx context.Context, p peer.ID)) *API_UnblockPeer_Call
func (*API_UnblockPeer_Call) RunAndReturn ¶
func (_c *API_UnblockPeer_Call) RunAndReturn(run func(context.Context, peer.ID) error) *API_UnblockPeer_Call
type API_UnblockSubnet_Call ¶
API_UnblockSubnet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnblockSubnet'
func (*API_UnblockSubnet_Call) Return ¶
func (_c *API_UnblockSubnet_Call) Return(_a0 error) *API_UnblockSubnet_Call
func (*API_UnblockSubnet_Call) Run ¶
func (_c *API_UnblockSubnet_Call) Run(run func(ctx context.Context, ipnet *net.IPNet)) *API_UnblockSubnet_Call
func (*API_UnblockSubnet_Call) RunAndReturn ¶
func (_c *API_UnblockSubnet_Call) RunAndReturn(run func(context.Context, *net.IPNet) error) *API_UnblockSubnet_Call
type API_UnprotectPeer_Call ¶
API_UnprotectPeer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnprotectPeer'
func (*API_UnprotectPeer_Call) Return ¶
func (_c *API_UnprotectPeer_Call) Return(_a0 error) *API_UnprotectPeer_Call
func (*API_UnprotectPeer_Call) Run ¶
func (_c *API_UnprotectPeer_Call) Run(run func(ctx context.Context, p peer.ID)) *API_UnprotectPeer_Call
func (*API_UnprotectPeer_Call) RunAndReturn ¶
func (_c *API_UnprotectPeer_Call) RunAndReturn(run func(context.Context, peer.ID) error) *API_UnprotectPeer_Call
type GossipMetricer ¶
GossipMetricer is an autogenerated mock type for the GossipMetricer type
func NewGossipMetricer ¶
func NewGossipMetricer(t mockConstructorTestingTNewGossipMetricer) *GossipMetricer
NewGossipMetricer creates a new instance of GossipMetricer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GossipMetricer) RecordGossipEvent ¶
func (_m *GossipMetricer) RecordGossipEvent(evType int32)
RecordGossipEvent provides a mock function with given fields: evType
type PeerGater ¶
PeerGater is an autogenerated mock type for the PeerGater type
func NewPeerGater ¶
func NewPeerGater(t mockConstructorTestingTNewPeerGater) *PeerGater
NewPeerGater creates a new instance of PeerGater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Peerstore ¶
Peerstore is an autogenerated mock type for the Peerstore type
func NewPeerstore ¶
func NewPeerstore(t mockConstructorTestingTNewPeerstore) *Peerstore
NewPeerstore creates a new instance of Peerstore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ScoreMetrics ¶
ScoreMetrics is an autogenerated mock type for the ScoreMetrics type
func NewScoreMetrics ¶
func NewScoreMetrics(t mockConstructorTestingTNewScoreMetrics) *ScoreMetrics
NewScoreMetrics creates a new instance of ScoreMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ScoreMetrics) SetPeerScores ¶
func (_m *ScoreMetrics) SetPeerScores(_a0 []store.PeerScores)
SetPeerScores provides a mock function with given fields: _a0