Documentation ¶
Index ¶
- func DisableLog()
- func New(cfg *types.Store, sub []byte) queue.Module
- func SetLogLevel(level string)
- type KVStore
- func (kvs *KVStore) Close()
- func (kvs *KVStore) Commit(req *types.ReqHash) ([]byte, error)
- func (kvs *KVStore) CommitUpgrade(req *types.ReqHash) ([]byte, error)
- func (kvs *KVStore) Del(req *types.StoreDel) ([]byte, error)
- func (kvs *KVStore) Get(datas *types.StoreGet) [][]byte
- func (kvs *KVStore) IterateRangeByStateHash(statehash []byte, start []byte, end []byte, ascending bool, ...)
- func (kvs *KVStore) MemSet(datas *types.StoreSet, sync bool) ([]byte, error)
- func (kvs *KVStore) MemSetUpgrade(datas *types.StoreSet, sync bool) ([]byte, error)
- func (kvs *KVStore) ProcEvent(msg *queue.Message)
- func (kvs *KVStore) Rollback(req *types.ReqHash) ([]byte, error)
- func (kvs *KVStore) Set(datas *types.StoreSet, sync bool) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KVStore ¶
KVStore implementation
func (*KVStore) CommitUpgrade ¶
CommitUpgrade kvs in the mem of KVStore
func (*KVStore) IterateRangeByStateHash ¶
func (kvs *KVStore) IterateRangeByStateHash(statehash []byte, start []byte, end []byte, ascending bool, fn func(key, value []byte) bool)
IterateRangeByStateHash method
func (*KVStore) MemSetUpgrade ¶
MemSetUpgrade set kvs to the mem of KVStore
Click to show internal directories.
Click to hide internal directories.