Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PersistentStatePathDefault is the default path for persistent state file. PersistentStatePathDefault = ".neofs-storage-state" // NotificationTimeoutDefault is the default timeout for object notification operation. NotificationTimeoutDefault = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶ added in v0.46.0
type Node struct {
Wallet struct {
Path string `mapstructure:"path"`
Address string `mapstructure:"address"`
Password string `mapstructure:"password"`
} `mapstructure:"wallet"`
Addresses []string `mapstructure:"addresses"`
Relay bool `mapstructure:"relay"`
PersistentSessions struct {
Path string `mapstructure:"path"`
} `mapstructure:"persistent_sessions"`
PersistentState struct {
Path string `mapstructure:"path"`
} `mapstructure:"persistent_state"`
Attributes []string `mapstructure:"attributes"`
}
Node contains configuration for a node.
func (*Node) BootstrapAddresses ¶ added in v0.46.0
func (n *Node) BootstrapAddresses() (addr network.AddressGroup)
BootstrapAddresses returns the value of "addresses" config parameter from "node" section as network.AddressGroup.
Panics if the value is not a string list of valid NeoFS network addresses.
func (*Node) Normalize ¶ added in v0.46.0
func (n *Node) Normalize()
Normalize sets default values for node fields if they are not set.
func (*Node) PrivateKey ¶ added in v0.46.0
func (n *Node) PrivateKey() *keys.PrivateKey
PrivateKey returns the value of a node private key from "node" section.
Panics if section contains invalid values.
Click to show internal directories.
Click to hide internal directories.