Versions in this module Expand all Collapse all v2 v2.8.2 Nov 1, 2024 v2.8.1 Nov 1, 2024 Changes in this version + var ErrNotFound = errors.New("key not found") + 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 Merge func(dst, src interface{}) error + type Observer func(string, Value) + type Option func(*options) + func WithDecoder(d Decoder) Option + func WithMergeFunc(m Merge) Option + func WithResolveActualTypes(enableConvertToType bool) 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