Documentation
¶
Overview ¶
Package config is an interface for dynamic configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { Close() error Bytes() []byte Get(path ...string) Value Load(source ...source.Source) error Watch(path ...string) (Watcher, error) }
Config is an interface abstraction for dynamic configuration
type Option ¶
type Option func(o *Options)
func WithSource ¶
WithSource appends a source to list of sources
type Value ¶
type Value interface { Bool(def bool) bool Int(def int) int String(def string) string Float64(def float64) float64 Duration(def time.Duration) time.Duration StringSlice(def []string) []string StringMap(def map[string]string) map[string]string Scan(val interface{}) error Bytes() []byte }
Value represents a value of any type
Directories
¶
Path | Synopsis |
---|---|
Package reader parses change sets and provides config values
|
Package reader parses change sets and provides config values |
Package source is the interface for sources
|
Package source is the interface for sources |
file
Package file is a file source.
|
Package file is a file source. |
memory
Package memory is a memory source
|
Package memory is a memory source |
Click to show internal directories.
Click to hide internal directories.