Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigFilePath ¶
GetConfigFilePath returns the location of the config file in order of priority: 1 ) Specified by --config command-line flag 2 ) Global file in /etc/fusion/fusion.yml
func ReadConfigFile ¶
ReadConfigFile reads the config file and overrides any values net in both it and the DefaultConfig
func ReadEnvironment ¶
func ReadEnvironment(conf *Config)
ReadEnvironment takes environment variables and overrides any values from DefaultConfig and the Config file.
Types ¶
type Config ¶
type Config struct { // Logging LogLevel string `yaml:"loglevel"` LogFormat string `yaml:"logformat"` // Server Address string `yaml:"address"` Port int16 `yaml:"port"` // Database Database DatabaseConfig `yaml:"database"` }
The Config struct holds the Fusion Configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a Config struct with the default settings
Click to show internal directories.
Click to hide internal directories.