Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigFilePath ¶
func GetConfigFilePath() string
GetConfigFilePath returns the location of the config file in order of priority: 1 ) File in same directory as the executable 2 ) Global file in /etc/eremetic/eremetic.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 int `yaml:"port"` HTTPCredentials string `yaml:"http_credentials" envconfig:"http_credentials"` URLPrefix string `yaml:"url_prefix" envconfig:"url_prefix"` // Database DatabaseDriver string `yaml:"database_driver" envconfig:"database_driver"` DatabasePath string `yaml:"database" envconfig:"database"` // Mesos Name string `yaml:"name"` User string `yaml:"user"` Checkpoint bool `yaml:"checkpoint"` FailoverTimeout float64 `yaml:"failover_timeout" envconfig:"failover_timeout"` QueueSize int `yaml:"queue_size" envconfig:"queue_size"` Master string `yaml:"master"` FrameworkID string `yaml:"framework_id" envconfig:"framework_id"` CredentialsFile string `yaml:"credential_file" envconfig:"credential_file"` MessengerAddress string `yaml:"messenger_address" envconfig:"messenger_address"` MessengerPort int `yaml:"messenger_port" envconfig:"messenger_port"` }
The Config struct holds the Eremetic 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.