Documentation ¶
Index ¶
- type Storage
- func (p *Storage) Close()
- func (p *Storage) Get(key []byte) ([]byte, error)
- func (p *Storage) Iterate(f func([]byte, []byte) (bool, error)) (err error)
- func (p *Storage) List(limit int) ([]db.KV, error)
- func (p *Storage) NewTx() (db.Tx, error)
- func (p *Storage) Pebble() *pebble.DB
- func (p *Storage) WithPrefix(prefix []byte) db.Storage
- type StorageTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage implements the db.Storage interface
func NewPebbleStorage ¶
NewPebbleStorage returns a new Storage
func (*Storage) Close ¶
func (p *Storage) Close()
Close implements the method Close of the interface db.Storage
type StorageTx ¶
type StorageTx struct { *Storage // contains filtered or unexported fields }
StorageTx implements the db.Tx interface
func (*StorageTx) Close ¶
func (tx *StorageTx) Close()
Close implements the method Close of the interface db.Tx
Click to show internal directories.
Click to hide internal directories.