dht

package
v0.0.0-...-3431805 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DHT

type DHT interface {
	Ping(n *node.Node) bool
	Store(cid [20]byte, value []byte) error
	FindNode(cid [20]byte) ([]node.Node, error)
	FindValue(cid [20]byte) ([]byte, error)
}

func NewDHT

func NewDHT(ip string, port string) (DHT, error)

type DHTimpl

type DHTimpl struct {
	*node.LocalNode
}

Jump to

Keyboard shortcuts

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