nodeconfig

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 5 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 BootstrapAddress

func BootstrapAddress(c *config.Config) *network.Address

BootstrapAddress returns value of "address" config parameter from "node" section as network.Address.

Panics if value is not a valid NeoFS network address

func Key

func Key(c *config.Config) string

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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