Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgsConnectionMonitorFactory ¶
type ArgsConnectionMonitorFactory struct { Reconnecter p2p.Reconnecter Sharder p2p.CommonSharder ThresholdMinConnectedPeers int TargetCount int }
ArgsConnectionMonitorFactory represents the argument for the connection monitor factory
type ConnectionMonitor ¶
type ConnectionMonitor interface { network.Notifiee IsConnectedToTheNetwork(netw network.Network) bool SetThresholdMinConnectedPeers(thresholdMinConnectedPeers int, netw network.Network) ThresholdMinConnectedPeers() int IsInterfaceNil() bool }
ConnectionMonitor defines the behavior of a connection monitor
func NewConnectionMonitor ¶
func NewConnectionMonitor(arg ArgsConnectionMonitorFactory) (ConnectionMonitor, error)
NewConnectionMonitor creates a new ConnectionMonitor instance
Click to show internal directories.
Click to hide internal directories.