package
Version:
v0.2.0-alpha.0
Opens a new window with list of versions in this module.
Published: Nov 3, 2017
License: MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 12
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
*Secrets
Address string `yaml:"address"`
ClusterCategory string `yaml:"cluster_category"`
ClusterName string `yaml:"cluster_name"`
Debug bool `yaml:"debug"`
DeleteDevices bool `yaml:"delete_devices"`
DisableAlerting bool `yaml:"disable_alerting"`
}
Config represents the application's configuration file.
GetConfig returns the application configuration specified by the config file.
type Secrets struct {
Account string `envconfig:"ACCOUNT"`
ID string `envconfig:"ACCESS_ID"`
Key string `envconfig:"ACCESS_KEY"`
EtcdDiscoveryToken string `envconfig:"ETCD_DISCOVERY_TOKEN"`
}
Secrets represents the application's sensitive configuration file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.