Documentation ¶
Index ¶
- Variables
- func BuildConfig(files []*core.ConfigSource) (*core.Config, error)
- func DecodeJSONConfig(reader io.Reader) (*conf.Config, error)
- func DecodeTOMLConfig(reader io.Reader) (*conf.Config, error)
- func DecodeYAMLConfig(reader io.Reader) (*conf.Config, error)
- func LoadJSONConfig(reader io.Reader) (*core.Config, error)
- func LoadTOMLConfig(reader io.Reader) (*core.Config, error)
- func LoadYAMLConfig(reader io.Reader) (*core.Config, error)
- func MergeConfigFromFiles(files []*core.ConfigSource) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ReaderDecoderByFormat = make(map[string]readerDecoder)
Functions ¶
func BuildConfig ¶
func BuildConfig(files []*core.ConfigSource) (*core.Config, error)
func DecodeJSONConfig ¶
DecodeJSONConfig reads from reader and decode the config into *conf.Config syntax error could be detected.
func DecodeTOMLConfig ¶
DecodeTOMLConfig reads from reader and decode the config into *conf.Config using github.com/pelletier/go-toml and map to convert toml to json.
func DecodeYAMLConfig ¶
DecodeYAMLConfig reads from reader and decode the config into *conf.Config using github.com/ghodss/yaml to convert yaml to json.
func MergeConfigFromFiles ¶
func MergeConfigFromFiles(files []*core.ConfigSource) (string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.