internal

package
v0.48.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPrefix = "neofs"

EnvPrefix is a prefix of ENV variables related to storage node configuration.

View Source
const EnvSeparator = "_"

EnvSeparator is a section separator in ENV variables.

Variables

This section is empty.

Functions

func CheckPtrBool added in v0.46.0

func CheckPtrBool(v, def *bool) *bool

CheckPtrBool returns the value of v if it is not nil, otherwise returns def. If both v and def are nil, returns a new bool.

func Env

func Env(path ...string) string

Env returns ENV variable key for a particular config parameter.

func ModeHook added in v0.46.0

ModeHook returns a mapstructure decode hook func that converts a string to a mode.Mode.

func SizeHook added in v0.46.0

SizeHook returns a mapstructure decode hook func that converts a string to a Size.

Types

type Size added in v0.46.0

type Size uint64

Size is an unsigned integer value that represents a size in bytes.

func (*Size) Check added in v0.46.0

func (s *Size) Check(def, defConst Size)

Check checks if the size is valid and sets it to the default if it is not.

Jump to

Keyboard shortcuts

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