Documentation ¶
Index ¶
- Constants
- type MaybePeerMgr
- 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 = 32 MinFilPeers = 12 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaybePeerMgr ¶
type NewFilPeer ¶ added in v0.6.2
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.