Documentation ¶
Index ¶
- type ChangeSet
- func (c *ChangeSet) Begin(prefix *record.Key, writable bool) keyvalue.ChangeSet
- func (c *ChangeSet) Commit() error
- func (c *ChangeSet) Delete(key *record.Key) error
- func (c *ChangeSet) Discard()
- func (c *ChangeSet) Get(key *record.Key) ([]byte, error)
- func (c *ChangeSet) Put(key *record.Key, value []byte) error
- type CommitFunc
- type Database
- type DiscardFunc
- type Entry
- type GetFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeSet ¶
type ChangeSet struct {
// contains filtered or unexported fields
}
ChangeSet is a key-value change set.
func NewChangeSet ¶
func NewChangeSet(prefix *record.Key, get GetFunc, commit CommitFunc, discard DiscardFunc) *ChangeSet
type CommitFunc ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
type DiscardFunc ¶ added in v1.2.10
type DiscardFunc = func()
Click to show internal directories.
Click to hide internal directories.