Documentation ¶
Index ¶
- Constants
- func RegisterCodec(cdc *codec.Codec)
- func RegisterOPCodec(cdc *codec.Codec)
- type LockOP
- type OP
- type OPManager
- type ReadOP
- type Store
- func (s Store) Commit(id []byte) error
- func (s Store) CommitImmediately() error
- func (s Store) Delete(key []byte)
- func (s Store) Discard(id []byte) error
- func (s Store) Get(key []byte) []byte
- func (s Store) Has(key []byte) bool
- func (s Store) OPs() cross.OPs
- func (s Store) Precommit(id []byte) error
- func (s Store) Set(key, value []byte)
- type WriteOP
Constants ¶
View Source
const ( // This order equals a priority of operation OP_TYPE_READ uint8 = iota + 1 OP_TYPE_WRITE )
View Source
const ( MainStorePrefix uint8 = iota TxStorePrefix LockStorePrefix )
Variables ¶
This section is empty.
Functions ¶
func RegisterCodec ¶
func RegisterOPCodec ¶
Types ¶
type OPManager ¶
type OPManager interface { AddRead(key, value []byte) AddWrite(key, value []byte) GetUpdatedValue(key []byte) ([]byte, bool) OPs() cross.OPs LockOPs() []LockOP }
func GetOPManager ¶ added in v0.0.3
func GetOPManager(tp cross.StateConstraintType) (OPManager, error)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) CommitImmediately ¶
Click to show internal directories.
Click to hide internal directories.