Documentation ¶
Index ¶
- Constants
- func NewTxDB(nodeTyp int, kvdb kv.Kvdb, kvdbConf *config.KVconf) (ItxDB, error)
- type TxDB
- func (bb *TxDB) ExistTxn(txnHash Hash) bool
- func (bb *TxDB) GetReceipt(txHash Hash) (rec *Receipt, err error)
- func (bb *TxDB) GetTxn(txnHash Hash) (stxn *SignedTxn, err error)
- func (bb *TxDB) GetTxns(txnHashes []Hash) (stxns []*SignedTxn, err error)
- func (bb *TxDB) SetReceipt(txHash Hash, receipt *Receipt) (err error)
- func (bb *TxDB) SetReceipts(receipts map[Hash]*Receipt) (err error)
- func (bb *TxDB) SetTxns(txns []*SignedTxn) (err error)
- type TxnDBSchema
Constants ¶
View Source
const ( Txns = "txns" Results = "results" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TxDB ¶
type TxDB struct {
// contains filtered or unexported fields
}
func (*TxDB) GetReceipt ¶
func (*TxDB) SetReceipt ¶
func (*TxDB) SetReceipts ¶
type TxnDBSchema ¶ added in v1.2.20
type TxnDBSchema struct { Type string `gorm:"type:varchar(10)"` Key string `gorm:"primaryKey;type:text"` Value string `gorm:"type:text"` }
func (TxnDBSchema) TableName ¶ added in v1.2.20
func (TxnDBSchema) TableName() string
Click to show internal directories.
Click to hide internal directories.