Versions in this module Expand all Collapse all v0 v0.0.2 Oct 22, 2019 v0.0.1 Oct 16, 2019 Changes in this version + func CreateDirIfMissing(dir string) (bool, error) + func DirEmpty(dir string) (bool, error) + type Conf struct + Path string + type DB struct + func NewDB(conf *Conf) *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