Documentation ¶
Index ¶
- Variables
- func FormatPath(ii ...interface{}) string
- func StringToKeys(s ...string) []string
- func Walk(v Values, fn WalkFunc) error
- type Decrypter
- type Encrypter
- type Entrypoint
- type KV
- type KVStore
- type Key
- type Marshaller
- type Option
- func WithDecrypt(d Decrypter) Option
- func WithEncrypt(e Encrypter) Option
- func WithInitData(data interface{}) Option
- func WithJSON() Option
- func WithLock(m *sync.RWMutex) Option
- func WithMarshaller(m Marshaller) Option
- func WithReadOnly() Option
- func WithSetCallback(f func([]string, interface{}) error) Option
- func WithString() Option
- func WithUnmarshaler(u Unmarshaler) Option
- func WithYAML() Option
- type Options
- type Receiver
- type Ref
- type Scanner
- type Source
- type Unmarshaler
- type Value
- type Values
- type WalkFunc
- type WatchOption
- type WatchOptions
- type Watcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoMarshallerDefined = errors.New("no marshaller defined") ErrNoUnmarshalerDefined = errors.New("no unmarshaler defined") )
Functions ¶
func FormatPath ¶
func FormatPath(ii ...interface{}) string
func StringToKeys ¶
Types ¶
type Entrypoint ¶
type Marshaller ¶
type Option ¶
type Option func(*Options)
func WithDecrypt ¶
func WithEncrypt ¶
func WithInitData ¶ added in v4.0.6
func WithInitData(data interface{}) Option
func WithMarshaller ¶
func WithMarshaller(m Marshaller) Option
func WithReadOnly ¶ added in v4.0.1
func WithReadOnly() Option
func WithSetCallback ¶ added in v4.0.1
func WithString ¶ added in v4.0.1
func WithString() Option
func WithUnmarshaler ¶
func WithUnmarshaler(u Unmarshaler) Option
type Source ¶
type Source interface { Entrypoint Watcher }
type Unmarshaler ¶
type Value ¶
type Value interface { Default(interface{}) Value Bool() bool Bytes() []byte Key() []string Reference() Ref Interface() interface{} Int() int Int64() int64 Duration() time.Duration String() string StringMap() map[string]string StringArray() []string Slice() []interface{} Map() map[string]interface{} Clone() Value Scanner }
type WatchOption ¶ added in v4.0.1
type WatchOption func(*WatchOptions)
func WithChangesOnly ¶ added in v4.0.1
func WithChangesOnly() WatchOption
func WithPath ¶ added in v4.0.1
func WithPath(path ...string) WatchOption
type WatchOptions ¶ added in v4.0.1
type Watcher ¶
type Watcher interface {
Watch(opts ...WatchOption) (Receiver, error)
}
Click to show internal directories.
Click to hide internal directories.