dht

package
v0.3.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2025 License: GPL-2.0, GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

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,
	nodeRepo RoutingStorer,
	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 RoutingStorer

type RoutingStorer interface {
	warpnet.WarpBatching
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL