Documentation ¶
Index ¶
- Variables
- type DB
- func (db *DB) Client() *badger.DB
- func (db *DB) Close() error
- func (db *DB) GetAll(prefix string) (map[string]string, error)
- func (db *DB) GetJSON(key string, dst interface{}) error
- func (db *DB) GetKey(key string) ([]byte, error)
- func (db *DB) PutJSON(key string, data interface{}) error
- func (db *DB) PutJSONBulk(kvs map[string]interface{}) error
- func (db *DB) PutKey(key string, data []byte) error
- func (db *DB) RemoveKey(key string) error
- func (db *DB) Subscribe(ctx context.Context, fn func(changed []ModifiedKV) error, prefixes ...string) error
- type ModifiedKV
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKeyNotFound = badger.ErrKeyNotFound
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.