bootconfig

package
v0.0.0-...-909db3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 4 Imported by: 0

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

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"`

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL