Documentation
¶
Index ¶
- type Caster
- type Decrypter
- type Encrypter
- type Getter
- type Marshaller
- type Option
- func WithBinary() Option
- func WithDecrypt(d Decrypter) Option
- func WithEncrypt(e Encrypter) Option
- func WithInitData(data interface{}) Option
- func WithJSON() Option
- func WithMarshaller(m Marshaller) Option
- func WithReadOnly() Option
- func WithReferencePool(key string, ref *openurl.Pool[Values]) Option
- func WithSetCallback(f func([]string, interface{}) error) Option
- func WithStorer(data Storer) Option
- func WithString() Option
- func WithUnmarshaler(u Unmarshaler) Option
- func WithYAML() Option
- type Options
- type Scanner
- type Store
- func (m *Store) As(out any) bool
- func (c *Store) Clone() *Store
- func (m *Store) Close(_ context.Context) error
- func (m *Store) Context(ctx context.Context) Values
- func (m *Store) Default(d any) Values
- func (m *Store) Del() error
- func (m *Store) Done() <-chan struct{}
- func (c *Store) Empty()
- func (m *Store) Flush()
- func (m *Store) Get() any
- func (m *Store) Key() []string
- func (m *Store) Options() *Options
- func (m *Store) RLock()
- func (m *Store) RUnlock()
- func (m *Store) Reset()
- func (m *Store) Save(string, string) error
- func (m *Store) Set(value any) error
- func (m *Store) Val(path ...string) Values
- func (m *Store) Watch(opts ...watch.WatchOption) (watch.Receiver, error)
- type Storer
- type Unmarshaler
- type Values
- type WalkOption
- type WalkOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marshaller ¶
type Option ¶
type Option func(*Options)
func WithBinary ¶
func WithBinary() Option
func WithDecrypt ¶
func WithEncrypt ¶
func WithInitData ¶
func WithInitData(data interface{}) Option
func WithMarshaller ¶
func WithMarshaller(m Marshaller) Option
func WithReadOnly ¶
func WithReadOnly() Option
func WithSetCallback ¶
func WithStorer ¶
func WithString ¶
func WithString() Option
func WithUnmarshaler ¶
func WithUnmarshaler(u Unmarshaler) Option
type Options ¶
type Options struct {
InitData interface{}
Storer
Unmarshaler
Marshaller
Encrypter
Decrypter
// Additional callback after Set is called
SetCallback func([]string, interface{}) error
// Do not create any resources
ReadOnly bool
ReferencePool map[string]*openurl.Pool[Values]
// Used to pass other potential options
Context context.Context
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
type Unmarshaler ¶
type WalkOption ¶
type WalkOption func(*WalkOptions)
func WithInterceptor ¶
func WithInterceptor(f func(i int, v any) (bool, any)) WalkOption
Click to show internal directories.
Click to hide internal directories.