Documentation ¶
Index ¶
- Variables
- type DBLayer
- type RawDB
- func (db *RawDB) Close()
- func (db *RawDB) CountReference(key []byte) (int, error)
- func (db *RawDB) Delete(key []byte) error
- func (db *RawDB) Dereference(key []byte) error
- func (db *RawDB) Get(key []byte) ([]byte, error)
- func (db *RawDB) Has(key []byte) (bool, error)
- func (db *RawDB) LDB() *leveldb.DB
- func (db *RawDB) NewBatch() database.Batch
- func (db *RawDB) NewIterator() iterator.Iterator
- func (db *RawDB) NewIteratorWithPrefix(prefix []byte) iterator.Iterator
- func (db *RawDB) Path() string
- func (db *RawDB) Put(key []byte, value []byte) error
- func (db *RawDB) Reference(key []byte) error
- type RollingDB
- func (rdb *RollingDB) Close()
- func (rdb *RollingDB) CountReference(key []byte) (int, error)
- func (rdb *RollingDB) Delete(key []byte) error
- func (rdb *RollingDB) Dereference(key []byte) error
- func (rdb *RollingDB) Get(key []byte) ([]byte, error)
- func (rdb *RollingDB) Has(key []byte) (bool, error)
- func (rdb *RollingDB) NewBatch() database.Batch
- func (rdb *RollingDB) Put(key []byte, value []byte) error
- func (rdb *RollingDB) Reference(key []byte) error
- func (rdb *RollingDB) SetChain(chain *blockchain.Chain)
- func (rdb *RollingDB) Tag(height uint64, stateRoot common.Hash)
- type RollingDBBatch
Constants ¶
This section is empty.
Variables ¶
View Source
var OpenFileLimit = 64
Functions ¶
This section is empty.
Types ¶
type RawDB ¶
type RawDB struct {
// contains filtered or unexported fields
}
func (*RawDB) Dereference ¶
func (*RawDB) NewIterator ¶
func (*RawDB) NewIteratorWithPrefix ¶
NewIteratorWithPrefix returns a iterator to iterate over subset of database content with a particular prefix.
type RollingDB ¶
type RollingDB struct {
// contains filtered or unexported fields
}
func (*RollingDB) Dereference ¶
func (*RollingDB) SetChain ¶
func (rdb *RollingDB) SetChain(chain *blockchain.Chain)
type RollingDBBatch ¶
func (*RollingDBBatch) Write ¶
func (b *RollingDBBatch) Write() error
Click to show internal directories.
Click to hide internal directories.