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 = &ParametersDefinitionDiscovery{}
Parameters contains the configuration parameters of the autopeering peer discovery.
Functions ¶
func NetworkVersion ¶
func NetworkVersion() uint32
NetworkVersion returns the network version of the autopeering.
Types ¶
type ParametersDefinitionDiscovery ¶ added in v0.7.4
type ParametersDefinitionDiscovery struct { // NetworkVersion defines the config flag of the network version. NetworkVersion int `default:"38" usage:"autopeering network version"` // EntryNodes defines the config flag of the entry nodes. EntryNodes []string `` /* 209-byte string literal not displayed */ }
ParametersDefinitionDiscovery contains the definition of configuration parameters used by the autopeering peer discovery.
Click to show internal directories.
Click to hide internal directories.