dht

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDHTable

func NewDHTable(ctx context.Context, opts ...Option) *distributedHashTable

Types

type Option added in v0.3.112

type Option func(*dhtConfig)

func AddPeerCallbacks added in v0.3.112

func AddPeerCallbacks(cbs ...func(warpnet.WarpAddrInfo)) Option

func BootstrapNodes added in v0.3.112

func BootstrapNodes(nodes ...warpnet.WarpAddrInfo) Option

func EnableRendezvous added in v0.3.112

func EnableRendezvous() Option

func RemovePeerCallbacks added in v0.3.112

func RemovePeerCallbacks(cbs ...func(warpnet.WarpAddrInfo)) Option

func RoutingStore added in v0.3.112

func RoutingStore(store RoutingStorer) Option

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