Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLibp2pConnectionMonitorSimple ¶
func NewLibp2pConnectionMonitorSimple(args ArgsConnectionMonitorSimple) (*libp2pConnectionMonitorSimple, error)
NewLibp2pConnectionMonitorSimple creates a new connection monitor (version 2 that is more streamlined and does not care about pausing and resuming the discovery process) it also handles black listed peers
Types ¶
type ArgsConnectionMonitorSimple ¶
type ArgsConnectionMonitorSimple struct { Reconnecter p2p.Reconnecter ThresholdMinConnectedPeers uint32 Sharder Sharder PreferredPeersHolder p2p.PreferredPeersHolderHandler ConnectionsWatcher p2p.ConnectionsWatcher Network network.Network }
ArgsConnectionMonitorSimple is the DTO used in the NewLibp2pConnectionMonitorSimple constructor function
Click to show internal directories.
Click to hide internal directories.