Documentation ¶
Index ¶
Constants ¶
const ( // PersistentStatePathDefault is a default path for persistent state file. PersistentStatePathDefault = ".neofs-storage-state" // NotificationTimeoutDefault is a default timeout for object notification operation. NotificationTimeoutDefault = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func Attributes ¶
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 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.
Types ¶
type PersistentSessionsConfig ¶ added in v0.28.0
type PersistentSessionsConfig struct {
// contains filtered or unexported fields
}
PersistentSessionsConfig is a wrapper over "persistent_sessions" config section which provides access to persistent session tokens storage configuration of node.
func PersistentSessions ¶ added in v0.28.0
func PersistentSessions(c *config.Config) PersistentSessionsConfig
PersistentSessions returns structure that provides access to "persistent_sessions" subsection of "node" section.
func (PersistentSessionsConfig) Path ¶ added in v0.28.0
func (p PersistentSessionsConfig) Path() string
Path returns the value of "path" config parameter.
type PersistentStateConfig ¶ added in v0.24.1
type PersistentStateConfig struct {
// contains filtered or unexported fields
}
PersistentStateConfig is a wrapper over "persistent_state" config section which provides access to persistent state storage configuration of node.
func PersistentState ¶ added in v0.24.1
func PersistentState(c *config.Config) PersistentStateConfig
PersistentState returns structure that provides access to "persistent_state" subsection of "node" section.
func (PersistentStateConfig) Path ¶ added in v0.24.1
func (p PersistentStateConfig) Path() string
Path returns the value of "path" config parameter.
Returns PersistentStatePathDefault if the value is not a non-empty string.