autopeering

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, BSD-2-Clause Imports: 20 Imported by: 1

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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