Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "AutoPeering"
PluginName is the name of the peering plugin.
Variables ¶
View Source
var Parameters = &ParametersDefinition{}
Parameters contains the configuration parameters of the autopeering plugin.
View Source
var ( // Plugin is the plugin instance of the autopeering plugin. Plugin *node.Plugin )
Functions ¶
This section is empty.
Types ¶
type ParametersDefinition ¶ added in v0.7.4
type ParametersDefinition struct { // BindAddress defines the config flag of the autopeering bind address. BindAddress string `default:"0.0.0.0:14626" usage:"bind address for the autopeering"` // Mana defines the config flag of mana in the autopeering. Mana bool `default:"true" usage:"enable/disable mana in the autopeering"` // R stores the config flag of R. R int `default:"40" usage:"R parameter"` // Ro defines the config flag of Ro. Ro float64 `default:"2.0" usage:"Ro parameter"` }
ParametersDefinition contains the definition of configuration parameters used by the autopeering plugin.
Click to show internal directories.
Click to hide internal directories.