Documentation ¶
Index ¶
- Variables
- type DB
- func (db *DB) Count(prefix string, filter string, countProcessor func(cnt int64) error) error
- func (db *DB) Del(prefix string, key string) error
- func (db *DB) DelByPrefix(prefix string) error
- func (db *DB) DelEverything() error
- func (db *DB) DelManyRefs(prefix string, keys []string) error
- func (db *DB) Enumerate(prefix string, enumProcessor func(key string, value []byte) (bool, error)) error
- func (db *DB) Fix() error
- func (db *DB) Get(prefix string, key string, valueProcessor func(value []byte) error) error
- func (db *DB) List(prefix string, filter string, offset int64, limit int64, ...) error
- func (db *DB) RefMany(prefix string, keys []string) error
- func (db *DB) Set(prefix string, key string, value interface{}) error
- func (db *DB) SetMany(prefix string, keys []string, values []interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("Key not found")
ErrKeyNotFound ..
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB holds the database
func (*DB) DelByPrefix ¶ added in v0.4.2
DelByPrefix ..
func (*DB) DelManyRefs ¶
DelManyRefs ..
func (*DB) Enumerate ¶ added in v0.2.1
func (db *DB) Enumerate(prefix string, enumProcessor func(key string, value []byte) (bool, error)) error
Enumerate ..
Click to show internal directories.
Click to hide internal directories.