Documentation ¶
Index ¶
- type Storage
- func (l *Storage) Close()
- func (l *Storage) Get(key []byte) ([]byte, error)
- func (l *Storage) Iterate(f func([]byte, []byte) (bool, error)) error
- func (l *Storage) LevelDB() *leveldb.DB
- func (l *Storage) List(limit int) ([]db.KV, error)
- func (l *Storage) NewTx() (db.Tx, error)
- func (l *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 NewLevelDbStorage ¶
NewLevelDbStorage returns a new Storage
func (*Storage) Close ¶
func (l *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.