discovery

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0, BSD-2-Clause Imports: 14 Imported by: 1

Documentation

Index

Constants

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

	// PluginName is the name of the autopeering plugin.
	PluginName = "Autopeering"
)

autopeering constants

Variables

View Source
var (
	// ErrParsingEntryNode is returned for an invalid entry node.
	ErrParsingEntryNode = errors.New("cannot parse entry node")
)
View Source
var Parameters = struct {
	// NetworkVersion defines the config flag of the network version.
	NetworkVersion int `default:"28" usage:"autopeering network version"`

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

Parameters contains the configuration parameters used by the message layer.

Functions

func Discovery

func Discovery() *discover.Protocol

Discovery returns the peer discovery instance.

func NetworkVersion

func NetworkVersion() uint32

NetworkVersion returns the network version of the autopeering.

Types

This section is empty.

Jump to

Keyboard shortcuts

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