Documentation ¶
Index ¶
- func New(vipers []*viper.Viper) (viperChannel chan *viper.Viper, errChannel chan error)
- func NewFromPaths(paths []string) (viperChannel chan *viper.Viper, errChannel chan error)
- func NewFromPathsAndName(paths []string, name string) (viperChannel chan *viper.Viper, errChannel chan error)
- type ViperPit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
/ NewFromPaths takes as input an array of vipers and creates a / ViperPit that monitors and merges and each one
func NewFromPaths ¶
/ NewFromPaths takes as input an array of paths and creates a / ViperPit that monitors each available file named config.* at those / paths.
func NewFromPathsAndName ¶
func NewFromPathsAndName(paths []string, name string) (viperChannel chan *viper.Viper, errChannel chan error)
/ NewFromPathsAndName takes as input an array of paths and the name / of the config file (without extension) potentially stored at those / paths and creates a ViperPit that monitors each available config.
Types ¶
Click to show internal directories.
Click to hide internal directories.