Documentation ¶
Index ¶
- func AddMVCC(db dbm.KVDB, detail *types.BlockDetail) (kvlist []*types.KeyValue)
- func DelMVCC(db dbm.KVDB, detail *types.BlockDetail) (kvlist []*types.KeyValue)
- func DisableLog()
- func NewLocalDB(client queue.Client) db.KVDB
- func NewStateDB(client queue.Client, stateHash []byte, localdb db.KVDB, opt *StateDBOption) db.KV
- func RegisterPlugin(name string, p plugin)
- func SetLogLevel(level string)
- type Executor
- type LocalDB
- func (l *LocalDB) BatchGet(keys [][]byte) (values [][]byte, err error)
- func (l *LocalDB) Get(key []byte) ([]byte, error)
- func (l *LocalDB) List(prefix, key []byte, count, direction int32) ([][]byte, error)
- func (l *LocalDB) PrefixCount(prefix []byte) (count int64)
- func (l *LocalDB) Set(key []byte, value []byte) error
- type StateDB
- func (s *StateDB) BatchGet(keys [][]byte) (values [][]byte, err error)
- func (s *StateDB) Begin()
- func (s *StateDB) Commit()
- func (s *StateDB) Get(key []byte) ([]byte, error)
- func (s *StateDB) GetSetKeys() (keys []string)
- func (s *StateDB) Rollback()
- func (s *StateDB) Set(key []byte, value []byte) error
- func (s *StateDB) StartTx()
- type StateDBOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStateDB ¶
NewStateDB new state db
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor executor struct
func (*Executor) SetQueueClient ¶
SetQueueClient set client queue, for recv msg
type LocalDB ¶
type LocalDB struct { db.TransactionDB // contains filtered or unexported fields }
LocalDB local db for store key value in local
func (*LocalDB) PrefixCount ¶
PrefixCount 从数据库中查询指定前缀的key的数量
type StateDB ¶
type StateDB struct {
// contains filtered or unexported fields
}
StateDB state db for store mavl
func (*StateDB) GetSetKeys ¶
GetSetKeys get state db set keys
type StateDBOption ¶
StateDBOption state db option enable mvcc
Click to show internal directories.
Click to hide internal directories.