Documentation
¶
Index ¶
- func Copy(from KV, to KV) error
- type Codec
- type DefaultProvider
- type DirKV
- func (dir *DirKV) Close() error
- func (dir *DirKV) Contains(key string) bool
- func (dir *DirKV) Get(prefix string) ([]byte, error)
- func (dir *DirKV) GetOrDefault(key string, defaultFunc Getter) ([]byte, error)
- func (dir *DirKV) GetReader(prefix string) (io.Reader, error)
- func (dir *DirKV) IsChanged(since time.Time, prefix string) (bool, error)
- func (dir *DirKV) Iterate(prefix string, action IteratorAction) error
- func (dir *DirKV) IterateAll(action IteratorAction) error
- func (dir *DirKV) IterateSubTree(prefix string, action IteratorAction) error
- func (dir *DirKV) IterateValues(prefix string, action KeyValueIteratorAction) error
- func (dir *DirKV) List(prefix string) ([]string, error)
- func (dir *DirKV) Put(key string, value []byte) error
- type EncodedKV
- func (e EncodedKV) Contains(key string) bool
- func (e EncodedKV) Get(prefix string) (interface{}, error)
- func (e EncodedKV) GetOrDefault(key string, defaultFunc DefaultProvider) (interface{}, error)
- func (e EncodedKV) GetReader(prefix string) (interface{}, error)
- func (e EncodedKV) IsChanged(since time.Time, prefix string) (bool, error)
- func (e EncodedKV) Iterate(prefix string, action IteratorAction) error
- func (e EncodedKV) IterateAll(action IteratorAction) error
- func (e EncodedKV) IterateSubTree(prefix string, action IteratorAction) error
- func (e EncodedKV) List(prefix string) ([]string, error)
- func (e EncodedKV) Put(key string, value []interface{}) error
- type Getter
- type IteratorAction
- type JsonCodec
- type KV
- type KeyValueIteratorAction
- type Pebble
- func (pb *Pebble) Close() error
- func (pb *Pebble) Contains(key string) bool
- func (pb *Pebble) Get(prefix string) ([]byte, error)
- func (pb *Pebble) GetOrDefault(key string, defaultFunc Getter) ([]byte, error)
- func (pb *Pebble) GetReader(prefix string) (io.Reader, error)
- func (pb *Pebble) IsChanged(since time.Time, prefix string) (bool, error)
- func (pb *Pebble) Iterate(prefix string, action IteratorAction) error
- func (pb *Pebble) IterateAll(action IteratorAction) error
- func (pb *Pebble) IterateSubTree(prefix string, action IteratorAction) error
- func (pb *Pebble) List(prefix string) ([]string, error)
- func (pb *Pebble) Put(key string, value []byte) error
- type SqliteKV
- func (sql *SqliteKV) Close() error
- func (s *SqliteKV) Commit() error
- func (s *SqliteKV) Contains(key string) bool
- func (s *SqliteKV) ExecQuery(query string, args ...interface{}) error
- func (s *SqliteKV) Get(key string) ([]byte, error)
- func (s *SqliteKV) GetOrDefault(key string, defaultFunc Getter) ([]byte, error)
- func (s *SqliteKV) GetReader(prefix string) (io.Reader, error)
- func (s *SqliteKV) IsChanged(since time.Time, prefix string) (bool, error)
- func (s *SqliteKV) Iterate(prefix string, action IteratorAction) error
- func (s *SqliteKV) IterateAll(action IteratorAction) error
- func (s *SqliteKV) IterateSubTree(prefix string, action IteratorAction) error
- func (s *SqliteKV) IterateValues(prefix string, action KeyValueIteratorAction) error
- func (s *SqliteKV) List(prefix string) ([]string, error)
- func (s *SqliteKV) Put(key string, value []byte) error
- type TypedKV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultProvider ¶
type DirKV ¶
type DirKV struct {
Path string
}
func (*DirKV) GetOrDefault ¶
func (*DirKV) IterateAll ¶
func (dir *DirKV) IterateAll(action IteratorAction) error
func (*DirKV) IterateSubTree ¶
func (dir *DirKV) IterateSubTree(prefix string, action IteratorAction) error
func (*DirKV) IterateValues ¶
func (dir *DirKV) IterateValues(prefix string, action KeyValueIteratorAction) error
type EncodedKV ¶
type EncodedKV struct {
// contains filtered or unexported fields
}
func (EncodedKV) GetOrDefault ¶
func (e EncodedKV) GetOrDefault(key string, defaultFunc DefaultProvider) (interface{}, error)
func (EncodedKV) IterateAll ¶
func (e EncodedKV) IterateAll(action IteratorAction) error
func (EncodedKV) IterateSubTree ¶
func (e EncodedKV) IterateSubTree(prefix string, action IteratorAction) error
type IteratorAction ¶
type KV ¶
type KV interface {
Put(key string, value []byte) error
List(prefix string) ([]string, error)
IterateAll(action IteratorAction) error
Iterate(prefix string, action IteratorAction) error
IterateValues(prefix string, action KeyValueIteratorAction) error
IterateSubTree(prefix string, action IteratorAction) error
Contains(key string) bool
GetOrDefault(key string, defaultFunc Getter) ([]byte, error)
Get(prefix string) ([]byte, error)
GetReader(prefix string) (io.Reader, error)
IsChanged(since time.Time, prefix string) (bool, error)
Close() error
}
type KeyValueIteratorAction ¶
type Pebble ¶
type Pebble struct {
// contains filtered or unexported fields
}
func CreatePebble ¶
func (*Pebble) GetOrDefault ¶
func (*Pebble) IterateAll ¶
func (pb *Pebble) IterateAll(action IteratorAction) error
func (*Pebble) IterateSubTree ¶
func (pb *Pebble) IterateSubTree(prefix string, action IteratorAction) error
type SqliteKV ¶
type SqliteKV struct {
// contains filtered or unexported fields
}
func CreateSqliteKV ¶
func (*SqliteKV) GetOrDefault ¶
func (*SqliteKV) IterateAll ¶
func (s *SqliteKV) IterateAll(action IteratorAction) error
func (*SqliteKV) IterateSubTree ¶
func (s *SqliteKV) IterateSubTree(prefix string, action IteratorAction) error
func (*SqliteKV) IterateValues ¶
func (s *SqliteKV) IterateValues(prefix string, action KeyValueIteratorAction) error
type TypedKV ¶
type TypedKV interface {
Put(key string, value []interface{}) error
List(prefix string) ([]string, error)
IterateAll(action IteratorAction) error
Iterate(prefix string, action IteratorAction) error
IterateSubTree(prefix string, action IteratorAction) error
Contains(key string) bool
GetOrDefault(key string, defaultFunc DefaultProvider) (interface{}, error)
Get(prefix string) (interface{}, error)
GetReader(prefix string) (io.Reader, error)
IsChanged(since time.Time, prefix string) (bool, error)
}
Click to show internal directories.
Click to hide internal directories.