Documentation
¶
Index ¶
- type EnclosedType
- type EnvironmentLoader
- type EnvironmentLoaderImpl
- func (ecfp *EnvironmentLoaderImpl) LoadBoolFromEnv(field string) (bool, error)
- func (ecfp *EnvironmentLoaderImpl) LoadFloatFromEnv(field string) (float64, error)
- func (ecfp *EnvironmentLoaderImpl) LoadIntFromEnv(field string) (int, error)
- func (ecfp *EnvironmentLoaderImpl) LoadStringFromEnv(field string) (string, error)
- type EnvironmentRegexParser
- type EnvironmentRegexParserImpl
- type EnvironmentVariable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnclosedType ¶
type EnvironmentLoader ¶
type EnvironmentLoaderImpl ¶
type EnvironmentLoaderImpl struct {
RegexParser EnvironmentRegexParser
}
func NewBraceEnvironmentLoader ¶
func NewBraceEnvironmentLoader() *EnvironmentLoaderImpl
func NewDefaultEnvironmentLoader ¶
func NewDefaultEnvironmentLoader() *EnvironmentLoaderImpl
func NewEnvironmentLoader ¶
func NewEnvironmentLoader(regexParser EnvironmentRegexParser) *EnvironmentLoaderImpl
func (*EnvironmentLoaderImpl) LoadBoolFromEnv ¶
func (ecfp *EnvironmentLoaderImpl) LoadBoolFromEnv(field string) (bool, error)
func (*EnvironmentLoaderImpl) LoadFloatFromEnv ¶
func (ecfp *EnvironmentLoaderImpl) LoadFloatFromEnv(field string) (float64, error)
func (*EnvironmentLoaderImpl) LoadIntFromEnv ¶
func (ecfp *EnvironmentLoaderImpl) LoadIntFromEnv(field string) (int, error)
func (*EnvironmentLoaderImpl) LoadStringFromEnv ¶
func (ecfp *EnvironmentLoaderImpl) LoadStringFromEnv(field string) (string, error)
type EnvironmentRegexParser ¶
type EnvironmentRegexParser interface {
GetEnv(field string) (*EnvironmentVariable, error)
}
type EnvironmentRegexParserImpl ¶
type EnvironmentRegexParserImpl struct {
EnvironmentVariableRegExp string
Seperator string
Prefix string
EncloseType *EnclosedType
}
func NewCustomerEnvironmentRegexParser ¶
func NewCustomerEnvironmentRegexParser(prefix, seperator string, enclosedType *EnclosedType) *EnvironmentRegexParserImpl
func NewDefaultEnvironmentRegexParser ¶
func NewDefaultEnvironmentRegexParser() *EnvironmentRegexParserImpl
func (*EnvironmentRegexParserImpl) GetEnv ¶
func (rp *EnvironmentRegexParserImpl) GetEnv(field string) (*EnvironmentVariable, error)
type EnvironmentVariable ¶
Click to show internal directories.
Click to hide internal directories.