Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfigNotFound = errors.New(heredoc.Doc(`
Config file not found. Loading from defaults...
Run "compass config init" to initialize a new configuartion file
Run "compass help environment" for more information.
Alternatively, make a "compass.yaml" file in the current directory from the example given
`))
)
View Source
var (
Version string
)
Version of the current build. overridden by the build system. see "Makefile" for more information
Functions ¶
func LoadConfigFromFlag ¶
func LoadFromCurrentDir ¶
Types ¶
type Config ¶
type Config struct { // Log LogLevel string `yaml:"log_level" mapstructure:"log_level" default:"info"` // StatsD StatsD statsd.Config `mapstructure:"statsd"` // NewRelic NewRelic metrics.NewRelicConfig `mapstructure:"newrelic"` // Elasticsearch Elasticsearch esStore.Config `mapstructure:"elasticsearch"` // Database DB postgres.Config `mapstructure:"db"` // Service Service server.Config `mapstructure:"service"` // Client Client client.Config `mapstructure:"client"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.