Documentation ¶
Index ¶
- Constants
- func IsConflictLock(require, current uint8) bool
- func RegisterCodec(cdc *codec.Codec)
- func RegisterOPCodec(cdc *codec.Codec)
- type OP
- type OPManager
- type OPs
- type Read
- 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 Write
- type WriteOP
Constants ¶
View Source
const ( LOCK_TYPE_NONE uint8 = iota LOCK_TYPE_READ LOCK_TYPE_WRITE )
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 )
View Source
const OP_NUM uint8 = 2
Variables ¶
This section is empty.
Functions ¶
func IsConflictLock ¶
func RegisterCodec ¶
func RegisterOPCodec ¶
Types ¶
type OPManager ¶
type OPManager struct {
// contains filtered or unexported fields
}
func NewOPManager ¶
func NewOPManager() *OPManager
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) CommitImmediately ¶
Click to show internal directories.
Click to hide internal directories.