Documentation ¶
Index ¶
- type NetworkShardingCollectorStub
- func (nscs *NetworkShardingCollectorStub) GetPeerInfo(pid core.PeerID) core.P2PPeerInfo
- func (nscs *NetworkShardingCollectorStub) IsInterfaceNil() bool
- func (nscs *NetworkShardingCollectorStub) UpdatePeerIDInfo(pid core.PeerID, pk []byte, shardID uint32)
- func (nscs *NetworkShardingCollectorStub) UpdatePeerIdSubType(pid core.PeerID, peerSubType core.P2PPeerSubType)
- type PeersHolderStub
- func (p *PeersHolderStub) Clear()
- func (p *PeersHolderStub) Contains(peerID core.PeerID) bool
- func (p *PeersHolderStub) Get() map[uint32][]core.PeerID
- func (p *PeersHolderStub) IsInterfaceNil() bool
- func (p *PeersHolderStub) Put(publicKey []byte, peerID core.PeerID, shardID uint32)
- func (p *PeersHolderStub) Remove(peerID core.PeerID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkShardingCollectorStub ¶
type NetworkShardingCollectorStub struct { UpdatePeerIDInfoCalled func(pid core.PeerID, pk []byte, shardID uint32) UpdatePeerIdSubTypeCalled func(pid core.PeerID, peerSubType core.P2PPeerSubType) GetPeerInfoCalled func(pid core.PeerID) core.P2PPeerInfo }
NetworkShardingCollectorStub -
func (*NetworkShardingCollectorStub) GetPeerInfo ¶
func (nscs *NetworkShardingCollectorStub) GetPeerInfo(pid core.PeerID) core.P2PPeerInfo
GetPeerInfo -
func (*NetworkShardingCollectorStub) IsInterfaceNil ¶
func (nscs *NetworkShardingCollectorStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*NetworkShardingCollectorStub) UpdatePeerIDInfo ¶
func (nscs *NetworkShardingCollectorStub) UpdatePeerIDInfo(pid core.PeerID, pk []byte, shardID uint32)
UpdatePeerIDInfo -
func (*NetworkShardingCollectorStub) UpdatePeerIdSubType ¶
func (nscs *NetworkShardingCollectorStub) UpdatePeerIdSubType(pid core.PeerID, peerSubType core.P2PPeerSubType)
UpdatePeerIdSubType
type PeersHolderStub ¶
type PeersHolderStub struct { PutCalled func(publicKey []byte, peerID core.PeerID, shardID uint32) GetCalled func() map[uint32][]core.PeerID ContainsCalled func(peerID core.PeerID) bool RemoveCalled func(peerID core.PeerID) ClearCalled func() }
PeersHolderStub -
func (*PeersHolderStub) Contains ¶
func (p *PeersHolderStub) Contains(peerID core.PeerID) bool
Contains -
func (*PeersHolderStub) IsInterfaceNil ¶
func (p *PeersHolderStub) IsInterfaceNil() bool
IsInterfaceNil -
Click to show internal directories.
Click to hide internal directories.