Documentation ¶
Index ¶
- Constants
- type FilPeerEvt
- type FilPeerEvtType
- type MaybePeerMgr
- 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 FilPeerEvt ¶
type FilPeerEvt struct { Type FilPeerEvtType ID peer.ID }
type FilPeerEvtType ¶
type FilPeerEvtType int
const ( AddFilPeerEvt FilPeerEvtType = iota RemoveFilPeerEvt )
type MaybePeerMgr ¶
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.