Documentation ¶
Index ¶
- type Badger
- func (storage *Badger) Close() error
- func (storage *Badger) Del(key string) (err error)
- func (storage *Badger) DeleteByPrefix(prefix []byte)
- func (storage *Badger) Get(key string) (value []byte, err error)
- func (storage *Badger) Iterate(fn func(key []byte, value []byte))
- func (storage *Badger) IterateByPrefix(prefix []byte, limit uint64, fn func(key []byte, value []byte)) uint64
- func (storage *Badger) IterateByPrefixFrom(prefix []byte, from []byte, limit uint64, fn func(key []byte, value []byte)) uint64
- func (storage *Badger) KeysByPrefixCount(prefix []byte) uint64
- func (storage *Badger) ProcessBatch(batch []*interfaces.Operation) (err error)
- func (storage *Badger) Set(key string, value []byte) (err error)
- type BuntDB
- func (storage *BuntDB) Close() error
- func (storage *BuntDB) Del(key string) (err error)
- func (storage *BuntDB) DeleteByPrefix(prefix []byte)
- func (storage *BuntDB) Get(key string) (value []byte, err error)
- func (storage *BuntDB) Iterate(fn func(key []byte, value []byte))
- func (storage *BuntDB) IterateByPrefix(prefix []byte, limit uint64, fn func(key []byte, value []byte)) uint64
- func (storage *BuntDB) IterateByPrefixFrom(prefix []byte, from []byte, limit uint64, fn func(key []byte, value []byte)) uint64
- func (storage *BuntDB) KeysByPrefixCount(prefix []byte) uint64
- func (storage *BuntDB) ProcessBatch(batch []*interfaces.Operation) (err error)
- func (storage *BuntDB) Set(key string, value []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Badger ¶
type Badger struct {
// contains filtered or unexported fields
}
Badger implements wrapper for badger database
func (*Badger) DeleteByPrefix ¶
Iterate iterates over keys with prefix
func (*Badger) IterateByPrefix ¶
func (storage *Badger) IterateByPrefix(prefix []byte, limit uint64, fn func(key []byte, value []byte)) uint64
Iterate iterates over keys with prefix
func (*Badger) IterateByPrefixFrom ¶
func (storage *Badger) IterateByPrefixFrom(prefix []byte, from []byte, limit uint64, fn func(key []byte, value []byte)) uint64
Iterate iterates over keys with prefix
func (*Badger) KeysByPrefixCount ¶
func (*Badger) ProcessBatch ¶
func (storage *Badger) ProcessBatch(batch []*interfaces.Operation) (err error)
ProcessBatch process batch of operations
type BuntDB ¶
type BuntDB struct {
// contains filtered or unexported fields
}
BuntDB implements wrapper for BuntDB database
func (*BuntDB) DeleteByPrefix ¶
func (*BuntDB) IterateByPrefix ¶
func (storage *BuntDB) IterateByPrefix(prefix []byte, limit uint64, fn func(key []byte, value []byte)) uint64
Iterate iterates over keys with prefix
func (*BuntDB) IterateByPrefixFrom ¶
func (*BuntDB) KeysByPrefixCount ¶
func (*BuntDB) ProcessBatch ¶
func (storage *BuntDB) ProcessBatch(batch []*interfaces.Operation) (err error)
ProcessBatch process batch of operations
Click to show internal directories.
Click to hide internal directories.