Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct { Name string `yaml:"name"` Value string `yaml:"value"` ValueFrom *OptionValueFrom `yaml:"valueFrom"` }
type OptionLoader ¶
type OptionLoader struct {
// contains filtered or unexported fields
}
func NewOptionLoader ¶
func NewOptionLoader(options Options) *OptionLoader
func (*OptionLoader) GetIntOrDefault ¶
func (ol *OptionLoader) GetIntOrDefault(name string, defaultVal int) (int, error)
func (*OptionLoader) GetStringOrDefault ¶
func (ol *OptionLoader) GetStringOrDefault(name string, defaultVal string) (string, error)
type OptionValueEnvRef ¶
type OptionValueEnvRef struct {
Key string `yaml:"key"`
}
type OptionValueFrom ¶
type OptionValueFrom struct {
EnvRef *OptionValueEnvRef `yaml:"envRef"`
}
Click to show internal directories.
Click to hide internal directories.