Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyRoot [32]byte
Functions ¶
func DisableLog ¶
func DisableLog()
func Reg ¶
func Reg(name string, create StoreCreate)
func SetLogLevel ¶
func SetLogLevel(level string)
Types ¶
type BaseStore ¶
type BaseStore struct {
// contains filtered or unexported fields
}
func (*BaseStore) GetQueueClient ¶
func (*BaseStore) SetQueueClient ¶
type StoreCreate ¶
func Load ¶
func Load(name string) (create StoreCreate, err error)
type SubStore ¶
type SubStore interface { Set(datas *types.StoreSet, sync bool) ([]byte, error) Get(datas *types.StoreGet) [][]byte MemSet(datas *types.StoreSet, sync bool) ([]byte, error) Commit(hash *types.ReqHash) ([]byte, error) Rollback(req *types.ReqHash) ([]byte, error) Del(req *types.StoreDel) ([]byte, error) IterateRangeByStateHash(statehash []byte, start []byte, end []byte, ascending bool, fn func(key, value []byte) bool) ProcEvent(msg queue.Message) }
Click to show internal directories.
Click to hide internal directories.