Documentation
¶
Index ¶
- Constants
- func VerifyProof(proofData []byte, root []byte, key []byte, value []byte) bool
- type Flag
- type IterStateCBFunc
- type IterStateDataCBFunc
- type StateStore
- type StateStoreComposition
- func (store *StateStoreComposition) Commit() error
- func (store *StateStoreComposition) Delete(key []byte) error
- func (store *StateStoreComposition) Exists(key []byte) (bool, error)
- func (store *StateStoreComposition) GetAllState() ([][]byte, [][]byte, [][]byte, error)
- func (store *StateStoreComposition) GetAllStateData() ([][]byte, [][]byte, error)
- func (store *StateStoreComposition) GetState(key []byte) ([]byte, []byte, error)
- func (store *StateStoreComposition) GetStateData(key []byte) ([]byte, error)
- func (store *StateStoreComposition) IterateAllStateCB(iterCBFunc IterStateCBFunc) error
- func (store *StateStoreComposition) IterateAllStateDataCB(iterCBFunc IterStateDataCBFunc) error
- func (store *StateStoreComposition) Put(key []byte, value []byte) error
- func (store *StateStoreComposition) Root() []byte
- func (store *StateStoreComposition) Update(key []byte, value []byte) error
Constants ¶
View Source
const ( Flag_Unknown Flag = 0x00 Flag_ReadOnly = 0x01 Flag_WriteOnly = 0x10 )
View Source
const (
MOD_NAME = "StateStore"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IterStateCBFunc ¶
type IterStateDataCBFunc ¶
type StateStore ¶
type StateStore interface {
tplgstore.Store
GetStateData(name string, key []byte) ([]byte, error)
GetState(name string, key []byte) ([]byte, []byte, error)
GetAllStateData(name string) ([][]byte, [][]byte, error)
IterateAllStateDataCB(name string, iterCBFunc IterStateDataCBFunc) error
GetAllState(name string) ([][]byte, [][]byte, [][]byte, error)
IterateAllStateCB(name string, iterCBFunc IterStateCBFunc) error
StateLatestVersion() (uint64, error)
StateVersions() ([]uint64, error)
}
func NewStateStore ¶
func NewStateStoreAt ¶
type StateStoreComposition ¶
type StateStoreComposition struct {
// contains filtered or unexported fields
}
func (*StateStoreComposition) Commit ¶
func (store *StateStoreComposition) Commit() error
func (*StateStoreComposition) Delete ¶
func (store *StateStoreComposition) Delete(key []byte) error
func (*StateStoreComposition) Exists ¶
func (store *StateStoreComposition) Exists(key []byte) (bool, error)
func (*StateStoreComposition) GetAllState ¶
func (store *StateStoreComposition) GetAllState() ([][]byte, [][]byte, [][]byte, error)
func (*StateStoreComposition) GetAllStateData ¶
func (store *StateStoreComposition) GetAllStateData() ([][]byte, [][]byte, error)
func (*StateStoreComposition) GetState ¶
func (store *StateStoreComposition) GetState(key []byte) ([]byte, []byte, error)
func (*StateStoreComposition) GetStateData ¶
func (store *StateStoreComposition) GetStateData(key []byte) ([]byte, error)
func (*StateStoreComposition) IterateAllStateCB ¶
func (store *StateStoreComposition) IterateAllStateCB(iterCBFunc IterStateCBFunc) error
func (*StateStoreComposition) IterateAllStateDataCB ¶
func (store *StateStoreComposition) IterateAllStateDataCB(iterCBFunc IterStateDataCBFunc) error
func (*StateStoreComposition) Put ¶
func (store *StateStoreComposition) Put(key []byte, value []byte) error
func (*StateStoreComposition) Root ¶
func (store *StateStoreComposition) Root() []byte
Click to show internal directories.
Click to hide internal directories.