configuration

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: Apache-2.0 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