Documentation
¶
Index ¶
- Constants
- Variables
- type CombinedIterator
- type KVIter
- type KVTX
- func (tx *KVTX) Del(req *DeleteReq) (bool, error)
- func (tx *KVTX) Get(key []byte) ([]byte, bool)
- func (tx *KVTX) Revert(save *TXSave)
- func (tx *KVTX) Save(save *TXSave)
- func (tx *KVTX) Seek(key1 []byte, cmp1 int, key2 []byte, cmp2 int) KVIter
- func (tx *KVTX) Set(key []byte, val []byte) (bool, error)
- func (tx *KVTX) Update(req *UpdateReq) (bool, error)
- type KVWrap
- type KeyRange
- type TXSave
Constants ¶
View Source
const ( FLAG_DELETED = byte(1) FLAG_UPDATED = byte(2) )
Variables ¶
View Source
var ErrorConflict = errors.New("cannot commit due to conflict")
Functions ¶
This section is empty.
Types ¶
type CombinedIterator ¶
type CombinedIterator struct {
// contains filtered or unexported fields
}
combines pending updates and the snapshot
func (*CombinedIterator) Deref ¶
func (iter *CombinedIterator) Deref() ([]byte, []byte)
func (*CombinedIterator) Next ¶
func (iter *CombinedIterator) Next()
func (*CombinedIterator) Valid ¶
func (iter *CombinedIterator) Valid() bool
type KVTX ¶
type KVTX struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.