nodeconfig

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attributes

func Attributes(c *config.Config) (attrs []string)

Attributes returns list of config parameters from "node" section that are set in "attribute_i" format, where i in range [0,100).

func BootstrapAddresses added in v0.22.0

func BootstrapAddresses(c *config.Config) (addr network.AddressGroup)

BootstrapAddresses returns value of "addresses" config parameter from "node" section as network.AddressGroup.

Panics if value is not a string list of valid NeoFS network addresses.

func Key

func Key(c *config.Config) *keys.PrivateKey

Key returns value of "key" config parameter from "node" section.

Panics if value is not a non-empty string.

func Relay

func Relay(c *config.Config) bool

Relay returns value of "relay" config parameter from "node" section.

Returns false if value is not set.

func Wallet added in v0.22.0

func Wallet(c *config.Config) *keys.PrivateKey

Wallet returns value of node private key from "node" section.

Types

This section is empty.

Jump to

Keyboard shortcuts

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