Versions in this module Expand all Collapse all v0 v0.0.2 Jan 25, 2024 v0.0.1 Jan 25, 2024 Changes in this version + var ErrInitFactory = errors.New("init factory") + var ErrInvalidValue = errors.New("invalid value") + var ErrStopWatch = errors.New("stop watch") + var ErrUnknowType = errors.New("unknow type") + var ErrValueNotFound = errors.New("value not found") + type Client struct + func Must(providers ...interface{}) *Client + func New(providers ...interface{}) (*Client, error) + func (c *Client) Name() string + func (c *Client) Value(ctx context.Context, path ...string) (Value, error) + func (c *Client) Watch(ctx context.Context, callback WatchCallback, path ...string) error + type Factory func(ctx context.Context, cfg Provider) (Provider, error) + type NamedProvider interface + Name func() string + type ParseValue interface + ParseBool func() (bool, error) + ParseDuration func() (time.Duration, error) + ParseFloat64 func() (float64, error) + ParseInt func() (int, error) + ParseInt64 func() (int64, error) + ParseString func() (string, error) + ParseTime func() (time.Time, error) + ParseUint func() (uint, error) + ParseUint64 func() (uint64, error) + type Provider interface + Value func(ctx context.Context, path ...string) (Value, error) + type ReadValue interface + Bool func() bool + Duration func() time.Duration + Float64 func() float64 + Int func() int + Int64 func() int64 + String func() string + Time func() time.Time + Uint func() uint + Uint64 func() uint64 + type UnmarshalValue interface + Unmarshal func(val interface{}) error + type Value interface + IsEquals func(in Value) bool + type WatchCallback func(ctx context.Context, oldVar, newVar Value) error + type WatchProvider interface + Watch func(ctx context.Context, callback WatchCallback, path ...string) error