Documentation
¶
Index ¶
- func Get[ParameterType supportedParameterValueType](cfg Config, parameter Parameter[ParameterType]) (ParameterType, i18n.Error)
- type Config
- type Parameter
- func (p Parameter[ValueType]) GetActive() bool
- func (p Parameter[ValueType]) GetDefaultValue() any
- func (p Parameter[ValueType]) GetDescription() string
- func (p Parameter[ValueType]) GetEnvVarName() string
- func (p Parameter[ValueType]) GetFlagName() string
- func (p Parameter[ValueType]) GetHiddenFlag() bool
- func (p Parameter[ValueType]) GetID() string
- func (p Parameter[ValueType]) GetRecordToLog() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parameter ¶
type Parameter[ValueType supportedParameterValueType] struct {
ID string
FlagName string
HiddenFlag bool
EnvVarName string
Description string
DefaultValue ValueType
RecordToLog bool
}
func (Parameter[ValueType]) GetDefaultValue ¶
func (Parameter[ValueType]) GetDescription ¶
func (Parameter[ValueType]) GetEnvVarName ¶
func (Parameter[ValueType]) GetFlagName ¶
func (Parameter[ValueType]) GetHiddenFlag ¶
func (Parameter[ValueType]) GetRecordToLog ¶
Click to show internal directories.
Click to hide internal directories.