Versions in this module Expand all Collapse all v0 v0.0.2 Oct 31, 2023 v0.0.1 Oct 30, 2023 Changes in this version + var DurationBetweenReconnectAttempts = time.Second * 5 + func NewLibp2pConnectionMonitorSimple(reconnecter p2p.Reconnecter, thresholdMinConnectedPeers int, sharder Sharder) (*libp2pConnectionMonitorSimple, error) + type NilConnectionMonitor struct + func (n *NilConnectionMonitor) ClosedStream(network.Network, network.Stream) + func (n *NilConnectionMonitor) Connected(network.Network, network.Conn) + func (n *NilConnectionMonitor) Disconnected(network.Network, network.Conn) + func (n *NilConnectionMonitor) IsConnectedToTheNetwork(netw network.Network) bool + func (n *NilConnectionMonitor) IsInterfaceNil() bool + func (n *NilConnectionMonitor) Listen(network.Network, multiaddr.Multiaddr) + func (n *NilConnectionMonitor) ListenClose(network.Network, multiaddr.Multiaddr) + func (n *NilConnectionMonitor) OpenedStream(network.Network, network.Stream) + func (n *NilConnectionMonitor) SetThresholdMinConnectedPeers(thresholdMinConnectedPeers int, _ network.Network) + func (n *NilConnectionMonitor) ThresholdMinConnectedPeers() int + type Sharder interface + ComputeEvictionList func(pidList []peer.ID) []peer.ID + Has func(pid peer.ID, list []peer.ID) bool + IsInterfaceNil func() bool