Documentation
¶
Index ¶
Constants ¶
View Source
const ( LocalConsulAddress = "localhost:8500" LocalNomadAddress = "http://localhost:4646" )
Define default local addresses for Consul and Nomad
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
DefaultConfig returns a default configuration struct with sane defaults.
func FromPath ¶
FromPath iterates and merges all configuration files in a given directory returning the resulting merged config based on lexical ordering for all files found. If the passed object is a file this is read and merged into the default config.
func ParseConfig ¶
ParseConfig reads the configuration file at the given path and returns a new Config struct with the data populated. The returned data is a merge of the user specified parameters and defaults with the user provided params always taking precident.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.