Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EnvKeyRoot the environment variable key for runtime root dir EnvKeyRoot = "TEMPORAL_ROOT" // EnvKeyConfigDir the environment variable key for config dir EnvKeyConfigDir = "TEMPORAL_CONFIG_DIR" // EnvKeyEnvironment is the environment variable key for environment EnvKeyEnvironment = "TEMPORAL_ENVIRONMENT" )
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load loads the configuration from a set of yaml config files found in the config directory
The loader first fetches the set of files matching a pre-determined naming convention, then sorts them by hierarchy order and after that, simply loads the files one after another with the key/values in the later files overriding the key/values in the earlier files
The hierarchy is as follows from lowest to highest
base.yaml env.yaml -- environment is one of the input params ex-development
func LoadConfig ¶
Helper function for loading configuration
func NewFSConfigProvider ¶
func NewFSConfigProvider(configDir string, env string) config.ConfigProvider
NewFSConfigProvider creates a default file system based Config Provider
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.