Documentation
¶
Index ¶
Constants ¶
View Source
const WarpnetRendezvous = "rendezvous-point@warpnet"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DistributedHashTable ¶
type DistributedHashTable struct {
// contains filtered or unexported fields
}
func NewDHTable ¶
func NewDHTable( ctx context.Context, db RoutingStorer, providerStore ProviderStorer, removeF func(warpnet.WarpPeerID), addFuncs ...discovery.DiscoveryHandler, ) *DistributedHashTable
func (*DistributedHashTable) Close ¶
func (d *DistributedHashTable) Close()
func (*DistributedHashTable) StartRouting ¶
func (d *DistributedHashTable) StartRouting(n warpnet.P2PNode) (_ warpnet.WarpPeerRouting, err error)
type ProviderCache ¶
type ProviderCache struct {
// contains filtered or unexported fields
}
func NewProviderCache ¶
func NewProviderCache(ctx context.Context, db ProviderCacheStorer) (*ProviderCache, error)
func (*ProviderCache) AddProvider ¶
func (d *ProviderCache) AddProvider(ctx context.Context, key []byte, prov warpnet.PeerAddrInfo) error
func (*ProviderCache) Close ¶
func (d *ProviderCache) Close() (err error)
func (*ProviderCache) GetProviders ¶
func (d *ProviderCache) GetProviders(ctx context.Context, key []byte) (_ []warpnet.PeerAddrInfo, err error)
type ProviderCacheStorer ¶
type ProviderStorer ¶
type RoutingStorer ¶
type RoutingStorer interface {
warpnet.WarpBatching
}
Click to show internal directories.
Click to hide internal directories.