forked from TrueCloudLab/frostfs-node
[#877] neofs-node/config: allow to provide default values
In case we have multiple sections with similar structure (e.g. shards) having defaults in a single place is easier to work with. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
118c3b3cfe
commit
cb9bf00ceb
5 changed files with 78 additions and 4 deletions
|
@ -17,7 +17,8 @@ import (
|
|||
type Config struct {
|
||||
v *viper.Viper
|
||||
|
||||
path []string
|
||||
defaultPath []string
|
||||
path []string
|
||||
}
|
||||
|
||||
const separator = "."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue