Documentation ¶
Index ¶
- func Load() (config.Config, error)
- func LoadFrom(file string) (config.Config, error)
- func LoadInstance() (config.Config, error)
- func Save(c config.Config) error
- func SaveFromFile(file string) error
- func SaveToFile(c config.Config, file string) error
- func Teardown() error
- func ValidateConfig(c config.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load loads the config. Error is only returned if the config file exists but could not be loaded. No error is returned if the config file does not exist.
func LoadInstance ¶ added in v0.7.4
LoadInstance is like Load but returns the config of the currently running instance.
func SaveFromFile ¶
SaveFromFile loads configuration from file and save as config.
func SaveToFile ¶
SaveToFile saves configuration to file.
func ValidateConfig ¶ added in v0.5.3
ValidateConfig validates config before we use it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.