Documentation ¶
Index ¶
- Variables
- type LevelDB
- func (db *LevelDB) Close() error
- func (db *LevelDB) Delete(key string) error
- func (db *LevelDB) Get(key string) ([]byte, error)
- func (db *LevelDB) IsExisted(key string) (bool, error)
- func (db *LevelDB) NewIterator() iterator.Iterator
- func (db *LevelDB) NewIteratorWithPrefix(prefix []byte) iterator.Iterator
- func (db *LevelDB) Path() string
- func (db *LevelDB) Schema() string
- func (db *LevelDB) Set(key string, value []byte, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var OpenFileLimit = 64
Functions ¶
This section is empty.
Types ¶
type LevelDB ¶
type LevelDB struct {
// contains filtered or unexported fields
}
func NewLDBDatabase ¶
NewLDBDatabase returns a LevelDB wrapped object.
func (*LevelDB) NewIterator ¶
func (*LevelDB) NewIteratorWithPrefix ¶
NewIteratorWithPrefix returns a iterator to iterate over subset of database content with a particular prefix.
Click to show internal directories.
Click to hide internal directories.