Documentation ¶
Index ¶
- Constants
- type IPeerMgr
- type MockPeerMgr
- func (m MockPeerMgr) AddFilecoinPeer(p peer.ID)
- func (m MockPeerMgr) Disconnect(p peer.ID)
- func (m MockPeerMgr) GetPeerLatency(p peer.ID) (time.Duration, bool)
- func (m MockPeerMgr) Run(ctx context.Context)
- func (m MockPeerMgr) SetPeerLatency(p peer.ID, latency time.Duration)
- func (m MockPeerMgr) Stop(ctx context.Context) error
- type NewFilPeer
- type PeerMgr
- func (pmgr *PeerMgr) AddFilecoinPeer(p peer.ID)
- func (pmgr *PeerMgr) Disconnect(p peer.ID)
- func (pmgr *PeerMgr) GetPeerLatency(p peer.ID) (time.Duration, bool)
- func (pmgr *PeerMgr) Run(ctx context.Context)
- func (pmgr *PeerMgr) SetPeerLatency(p peer.ID, latency time.Duration)
- func (pmgr *PeerMgr) Stop(ctx context.Context) error
Constants ¶
View Source
const ( MaxFilPeers = 320 MinFilPeers = 128 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPeerMgr ¶
type MockPeerMgr struct { }
func (MockPeerMgr) AddFilecoinPeer ¶
func (m MockPeerMgr) AddFilecoinPeer(p peer.ID)
func (MockPeerMgr) Disconnect ¶
func (m MockPeerMgr) Disconnect(p peer.ID)
func (MockPeerMgr) GetPeerLatency ¶
func (MockPeerMgr) Run ¶
func (m MockPeerMgr) Run(ctx context.Context)
func (MockPeerMgr) SetPeerLatency ¶
func (m MockPeerMgr) SetPeerLatency(p peer.ID, latency time.Duration)
type NewFilPeer ¶
type PeerMgr ¶
type PeerMgr struct {
// contains filtered or unexported fields
}
func NewPeerMgr ¶
func (*PeerMgr) AddFilecoinPeer ¶
func (*PeerMgr) Disconnect ¶
func (*PeerMgr) GetPeerLatency ¶
func (*PeerMgr) SetPeerLatency ¶
Click to show internal directories.
Click to hide internal directories.