p2p

package
v0.0.0-...-18d41d4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Protocol = "/discovery-p2p/0.0.1"

Protocol is a descriptor for the Discovery P2P Protocol.

Variables

This section is empty.

Functions

func CreateNode

func CreateNode(ctx context.Context, inputKey string, port int) (node host.Host, dhtOut *dht.IpfsDHT, err error)

CreateNode creates an internal Libp2p nodes and returns it and it's DHT Discovery service.

func Discover

func Discover(ctx context.Context, h host.Host, dht *dht.IpfsDHT, peerTable map[string]peer.ID)

Discover starts up a DHT based discovery system finding and adding nodes with the same rendezvous string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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