Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
Batch represents a set of put/delete operations to perform on a Bucket.
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
Bucket represents a goleveldb-backed queue, where each key is prefixed by the given namespace. All batch writes are synced by default.
func (*Bucket) Batch ¶
Batch enacts a number of operations in one atomic go. If the batch function returns a non-nil error, the batch is discarded and the error is returned to the caller. If the batch function returns nil, the batch is committed to the queue.
Click to show internal directories.
Click to hide internal directories.