config

package
v0.0.0-...-9575350 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(configReader ConfigReader, obj interface{}, configFiles ...string) error

ReadConfig deserializes each configfile to the target obj using the configReader env vars are replaced in the file path

Types

type ConfigReader

type ConfigReader interface {
	Unmarshal(data []byte, o interface{}) error
}

type ConfigReaderFunc

type ConfigReaderFunc func(data []byte, o interface{}) error

func (ConfigReaderFunc) Unmarshal

func (c ConfigReaderFunc) Unmarshal(data []byte, o interface{}) error

type ValidateableConfiguration

type ValidateableConfiguration interface {
	Validate() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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