discovery

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package discovery contains facilities for discovering peers in order to join a mesh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery interface {
	// Start starts the discovery service.
	Start(context.Context) error
	// Stop stops the discovery service.
	Stop() error
	// Accept returns a connection to a peer.
	// TODO: This needs to be hooked into any configured authentication mechanism.
	Accept() (io.ReadWriteCloser, error)
}

Discovery is the interface for discovering peers in order to join a mesh. It is used both by peers announcing for others to join and by peers joining a mesh.

Directories

Path Synopsis
Package libp2p provides discovery mechanisms using Kademlia DHT.
Package libp2p provides discovery mechanisms using Kademlia DHT.

Jump to

Keyboard shortcuts

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