Documentation ¶
Index ¶
- func CreateDirIfMissing(dir string) (bool, error)
- func DirEmpty(dir string) (bool, error)
- type Conf
- type DB
- func (db *DB) Close()
- func (db *DB) Delete(key []byte, sync bool) error
- func (db *DB) Get(key []byte) ([]byte, error)
- func (db *DB) GetIterator(startKey, endKey []byte) iterator.Iterator
- func (db *DB) Open()
- func (db *DB) Put(key, value []byte, sync bool) error
- func (db *DB) WriteBatch(batch *leveldb.Batch, sync bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirIfMissing ¶
CreateDirIfMissing creates directory to file system.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB handles leveldb related things.
func (*DB) GetIterator ¶
GetIterator returns an iterator for the latest snapshot of the underlying DB.
Click to show internal directories.
Click to hide internal directories.