discovery

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, BSD-2-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ProtocolVersion = 0 // update on protocol changes

)

autopeering constants.

Variables

View Source
var ErrParsingEntryNode = errors.New("cannot parse entry node")

ErrParsingEntryNode is returned for an invalid entry node.

Parameters contains the configuration parameters of the autopeering peer discovery.

Functions

func CreatePeerDisc added in v0.7.6

func CreatePeerDisc(localID *peer.Local) *discover.Protocol

CreatePeerDisc creates a discover protocol instance.

Types

type ParametersDefinitionDiscovery added in v0.7.4

type ParametersDefinitionDiscovery struct {
	// NetworkVersion defines the config flag of the network version.
	NetworkVersion uint32 `default:"66" usage:"autopeering network version"`

	// EntryNodes defines the config flag of the entry nodes.
	EntryNodes []string `` /* 315-byte string literal not displayed */
}

ParametersDefinitionDiscovery contains the definition of configuration parameters used by the autopeering peer discovery.

Jump to

Keyboard shortcuts

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