local

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0, BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParametersLocal = &ParametersDefinitionLocal{}

ParametersLocal contains the configuration parameters of the local peer.

View Source
var ParametersNetwork = &ParametersDefinitionNetwork{}

ParametersNetwork contains the configuration parameters of the local peer's network.

Functions

func GetInstance

func GetInstance() *peer.Local

GetInstance returns the instance of the local peer.

Types

type ParametersDefinitionLocal added in v0.7.4

type ParametersDefinitionLocal struct {
	// Port defines the config flag of the autopeering port.
	Port int `default:"14626" usage:"UDP port for incoming peering requests"`

	// Seed defines the config flag of the autopeering private key seed.
	Seed string `` /* 156-byte string literal not displayed */
}

ParametersDefinitionLocal contains the definition of configuration parameters used by the local peer.

type ParametersDefinitionNetwork added in v0.7.4

type ParametersDefinitionNetwork struct {
	// BindAddress defines the config flag of the network bind address.
	BindAddress string `default:"0.0.0.0" usage:"bind address for global services such as autopeering and gossip"`

	// ExternalAddress defines the config flag of the network external address.
	ExternalAddress string `default:"auto" usage:"external IP address under which the node is reachable; or 'auto' to determine it automatically"`
}

ParametersDefinitionNetwork contains the definition of configuration parameters used by the local peer's network.

Jump to

Keyboard shortcuts

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