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 ¶
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.
Click to show internal directories.
Click to hide internal directories.