Documentation ¶
Index ¶
- type DBCache
- func (dbc *DBCache) GetAccountByID(id string) (*model.Account, error)
- func (dbc *DBCache) GetBlockByID(id string) (*model.PbftBlock, error)
- func (dbc *DBCache) GetBlockByNum(num uint64) (*model.PbftBlock, error)
- func (dbc *DBCache) GetBlockMeta() (*model.BlockMeta, error)
- func (dbc *DBCache) GetGenesisBlock() (*model.Genesis, error)
- func (dbc *DBCache) GetTxByID(id string) (*model.Tx, error)
- func (dbc *DBCache) GetTxReceiptByID(id string) (*model.TxReceipt, error)
- func (dbc *DBCache) Insert(value interface{}) error
- func (dbc *DBCache) SetGenesisBlock(genesis *model.Genesis) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBCache ¶
type DBCache struct {
// contains filtered or unexported fields
}
增加一个缓存层
func (*DBCache) GetAccountByID ¶
func (*DBCache) GetBlockByID ¶
func (*DBCache) GetBlockByNum ¶
func (*DBCache) GetTxReceiptByID ¶
Click to show internal directories.
Click to hide internal directories.