Documentation ¶
Index ¶
- Variables
- func ToBytes(data any) []byte
- type DB
- func (t *DB) Close()
- func (t *DB) ConcurrencyList(prefix string, concurrency int, fn func(key string, value []byte) error) error
- func (t *DB) ConflictRetryTxn(fn func(txn *Txn) error) error
- func (t *DB) Dec(txn *Txn, key string, step int64) (int64, error)
- func (t *DB) Del(txn *Txn, key string) error
- func (t *DB) Get(txn *Txn, key string) ([]byte, error)
- func (t *DB) Has(txn *Txn, key string) (bool, error)
- func (t *DB) Inc(txn *Txn, key string, step int64) (int64, error)
- func (t *DB) List(prefix string, beginKey string, keyOnly bool, ...) error
- func (t *DB) Set(txn *Txn, key string, value any) error
- func (t *DB) Txn(fn func(txn *Txn) error, readOnly ...bool) error
- func (t *DB) Unmarshal(txn *Txn, key string, value any) error
- type Txn
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConflict = badger.ErrConflict
View Source
var ErrKeyNotFound = badger.ErrKeyNotFound
View Source
var ErrStopIterate = errors.New("stop iterate")
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.