Documentation ¶
Index ¶
- Constants
- type DB
- type IBatch
- type IQuery
- type LevelDB
- func (db *LevelDB) Close()
- func (db *LevelDB) DB() *leveldb.DB
- func (db *LevelDB) Delete(key []byte)
- func (db *LevelDB) DeleteSync(key []byte)
- func (db *LevelDB) Get(key []byte) []byte
- func (db *LevelDB) GetIter(key string, bitSize int64) IQuery
- func (d *LevelDB) NewBatch(sync bool) IBatch
- func (db *LevelDB) Print()
- func (db *LevelDB) Query(key string, beg, end, bitSize int64) IQuery
- func (db *LevelDB) Set(key []byte, value []byte)
- func (db *LevelDB) SetSync(key []byte, value []byte)
- type MemDB
- func (db *MemDB) Close()
- func (db *MemDB) Delete(key []byte)
- func (db *MemDB) DeleteSync(key []byte)
- func (db *MemDB) Get(key []byte) []byte
- func (db *MemDB) GetIter(key string, bitSize int64) IQuery
- func (db *MemDB) NewBatch(sync bool) IBatch
- func (db *MemDB) Print()
- func (db *MemDB) Query(key string, beg, end, bitSize int64) IQuery
- func (db *MemDB) Set(key []byte, value []byte)
- func (db *MemDB) SetSync(key []byte, value []byte)
Constants ¶
View Source
const DBBackendLevelDB = "leveldb"
View Source
const DBBackendMemDB = "memdb"
Database types
View Source
const DBBackendRocksDB = "rocksdb"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { Get([]byte) []byte Set([]byte, []byte) SetSync([]byte, []byte) Delete([]byte) DeleteSync([]byte) Close() Query(key string, beg, end, bitSize int64) IQuery GetIter(key string, bitSize int64) IQuery NewBatch(sync bool) IBatch // For debugging Print() }
func NewLevelDB ¶
type LevelDB ¶
type LevelDB struct {
// contains filtered or unexported fields
}
func (*LevelDB) DeleteSync ¶
type MemDB ¶
type MemDB struct {
// contains filtered or unexported fields
}
func (*MemDB) DeleteSync ¶
Click to show internal directories.
Click to hide internal directories.