Versions in this module Expand all Collapse all v0 v0.0.1 Nov 6, 2024 Changes in this version + func NewContinuousKadDhtDiscoverer(arg ArgKadDht) (*continuousKadDhtDiscoverer, error) + func NewHostWithConnectionManagement(args ArgsHostWithConnectionManagement) (*hostWithConnectionManagement, error) + func NewOptimizedKadDhtDiscoverer(arg ArgKadDht) (*optimizedKadDhtDiscoverer, error) + type ArgKadDht struct + BucketSize uint32 + ConnectionWatcher p2p.ConnectionsWatcher + Context context.Context + Host ConnectableHost + InitialPeersList []string + KddSharder p2p.Sharder + Logger p2p.Logger + NetworkType p2p.NetworkType + PeersRefreshInterval time.Duration + ProtocolID string + RoutingTableRefresh time.Duration + SeedersReconnectionInterval time.Duration + type ArgsHostWithConnectionManagement struct + ConnectableHost ConnectableHost + ConnectionsWatcher p2p.ConnectionsWatcher + Sharder Sharder + type ConnectableHost interface + AddressToPeerInfo func(address string) (*peer.AddrInfo, error) + ConnectToPeer func(ctx context.Context, address string) error + IsInterfaceNil func() bool + type KadDhtHandler interface + Bootstrap func(ctx context.Context) error + type NilDiscoverer struct + func NewNilDiscoverer() *NilDiscoverer + func (nd *NilDiscoverer) Bootstrap() error + func (nd *NilDiscoverer) IsInterfaceNil() bool + func (nd *NilDiscoverer) Name() string + func (nd *NilDiscoverer) ReconnectToNetwork(_ context.Context) + type Sharder interface + ComputeEvictionList func(pidList []peer.ID) []peer.ID + Has func(pid peer.ID, list []peer.ID) bool + IsInterfaceNil func() bool + IsSeeder func(pid core.PeerID) bool + SetSeeders func(addresses []string)