Documentation ¶
Index ¶
- func ConsKeysKey(num uint64, bhash common.Hash) []byte
- func GetConsKeys(getter serodb.Getter, num uint64, bhash common.Hash) [][]byte
- func PutConsKeys(putter serodb.Putter, num uint64, bhash common.Hash, keys [][]byte)
- type BytePair
- type Bytes
- type CItem
- type Cons
- func (self *Cons) Copy(db DB) (ret *Cons)
- func (self *Cons) CreateSnapshot(ver int)
- func (self *Cons) Record(header *types.Header, batch DPutter)
- func (self *Cons) ReportConItems(name string, items consItems, num uint64)
- func (self *Cons) ReportRecords(records []*Record, num uint64)
- func (self *Cons) RevertToSnapshot(ver int)
- func (self *Cons) Update()
- type DB
- type DBObj
- func (self DBObj) GetBlockRecords(getter serodb.Getter, num uint64, hash *common.Hash) (records []*Record)
- func (self DBObj) GetBlockRecordsMap(getter serodb.Getter, num uint64, hash *common.Hash) (records map[string][]RecordPair)
- func (self DBObj) GetObject(getter serodb.Getter, hash []byte, item CItem) (ret CItem)
- type DPutter
- type FakeDB
- type FakeTri
- func (self *FakeTri) Delete(key []byte) error
- func (self *FakeTri) Get(key []byte) ([]byte, error)
- func (self *FakeTri) Has(key []byte) (bool, error)
- func (self *FakeTri) Put(key, value []byte) error
- func (self *FakeTri) TryDelete(key []byte) error
- func (self *FakeTri) TryGet(key []byte) ([]byte, error)
- func (self *FakeTri) TryUpdate(key, value []byte) error
- type KVPoint
- type ObjPoint
- type PItem
- type Record
- type RecordPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConsKeys ¶ added in v1.1.0
Types ¶
type Cons ¶
type Cons struct {
// contains filtered or unexported fields
}
func (*Cons) CreateSnapshot ¶
func (*Cons) ReportConItems ¶
func (*Cons) ReportRecords ¶
func (*Cons) RevertToSnapshot ¶
type DBObj ¶
type DBObj struct {
Pre string
}
func (DBObj) GetBlockRecords ¶
func (DBObj) GetBlockRecordsMap ¶
type FakeDB ¶
type FakeDB struct {
// contains filtered or unexported fields
}
func (*FakeDB) CurrentTri ¶
func (*FakeDB) GlobalGetter ¶
type FakeTri ¶
type FakeTri struct {
// contains filtered or unexported fields
}
func NewFakeTri ¶
func NewFakeTri() (ret FakeTri)
type Record ¶
type Record struct { Name string Pairs []RecordPair }
type RecordPair ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.