Versions in this module Expand all Collapse all v1 v1.0.1 Sep 3, 2022 Changes in this version + var ErrNotFound = errors.New("key not found") + var ErrTypeAssert = errors.New("type assert error") + type Config interface + Close func() error + Load func() error + Scan func(v interface{}) error + Value func(key string) Value + Watch func(key string, o Observer) error + func New(opts ...Option) Config + type Decoder func(*KeyValue, map[string]interface{}) error + type KeyValue struct + Format string + Key string + Value []byte + type Observer func(string, Value) + type Option func(*options) + func WithDecoder(d Decoder) Option + func WithLogger(l log.Logger) Option + func WithResolver(r Resolver) Option + func WithSource(s ...Source) Option + type Reader interface + Merge func(...*KeyValue) error + Resolve func() error + Source func() ([]byte, error) + Value func(string) (Value, bool) + type Resolver func(map[string]interface{}) error + type Source interface + Load func() ([]*KeyValue, error) + Watch func() (Watcher, error) + type Value interface + Bool func() (bool, error) + Duration func() (time.Duration, error) + Float func() (float64, error) + Int func() (int64, error) + Load func() interface{} + Map func() (map[string]Value, error) + Scan func(interface{}) error + Slice func() ([]Value, error) + Store func(interface{}) + String func() (string, error) + type Watcher interface + Next func() ([]*KeyValue, error) + Stop func() error