p2p

package
v0.0.0-...-c5141c0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Protocol = "/hyprspace/0.0.1"

Protocol is a descriptor for the Hyprspace P2P Protocol.

Variables

This section is empty.

Functions

func CreateNode

func CreateNode(ctx context.Context, inputKey string, port int, handler network.StreamHandler) (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