Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type YamlConfigProvider ¶
type YamlConfigProvider struct {
// contains filtered or unexported fields
}
YamlConfigProvider is default config provider that is able to read configuration from yaml file
func (*YamlConfigProvider) GetConfigByName ¶
func (c *YamlConfigProvider) GetConfigByName(configName string) string
GetConfigByName returns configuration value by provided key or empty string if does not exist
func (*YamlConfigProvider) GetConfigWithDefaultValue ¶
func (c *YamlConfigProvider) GetConfigWithDefaultValue(configName string, defaultValue string) string
GetConfigWithDefaultValue returns configuration value by provided key or default value if does not exist
func (*YamlConfigProvider) OverrideWithValue ¶
func (c *YamlConfigProvider) OverrideWithValue(configName string, valueToSet string)
OverrideWithValue allows to change programatically configuration by key
Click to show internal directories.
Click to hide internal directories.