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) ForEach(fn func(*record.Key, []byte) error) error
- func (c *ChangeSet) Get(key *record.Key) ([]byte, error)
- func (c *ChangeSet) Put(key *record.Key, value []byte) error
- type ChangeSetOptions
- type CommitFunc
- type Database
- type DiscardFunc
- type Entry
- type ForEachFunc
- 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(opts ChangeSetOptions) *ChangeSet
type ChangeSetOptions ¶ added in v1.4.0
type ChangeSetOptions struct { Prefix *record.Key // Prefix to apply to keys Get GetFunc // Gets an entry from the previous layer Commit CommitFunc // Commits changes into the previous layer ForEach ForEachFunc // Iterates over each entry Discard DiscardFunc // Cleans up after discard }
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.