nodeconfig

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: GPL-3.0 Imports: 7 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.

If value is not set, fallbacks to Wallet section.

Panics if value is incorrect filename of binary encoded private key.

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.

Panics if section contains invalid values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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