Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterConfigGetter ¶
func RegisterConfigGetter(g ConfigGetter)
Types ¶
type ConfigGetter ¶
type ConfigGetter interface {
GetConfig(key string) (RawConfigData, configutils.ConfigType)
}
func GetConfigGetter ¶
func GetConfigGetter() ConfigGetter
type FileBootConfig ¶
type FileBootConfig struct {
BootConfigFileSet map[string]string
Type configutils.ConfigType
}
type FileBootConfigGetter ¶
type FileBootConfigGetter struct {
// contains filtered or unexported fields
}
func NewFileBootConfigGetter ¶
func NewFileBootConfigGetter(cfg FileBootConfig) FileBootConfigGetter
func (FileBootConfigGetter) GetConfig ¶
func (g FileBootConfigGetter) GetConfig(key string) (RawConfigData, configutils.ConfigType)
type RawConfigData ¶
type RawConfigData []byte
func (RawConfigData) Unmarshal ¶
func (d RawConfigData) Unmarshal(v interface{}, tp configutils.ConfigType) error
Unmarshal support json/toml/yaml. Notice: yaml should use tag `yaml:"key"`
Click to show internal directories.
Click to hide internal directories.