Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
Transaction(func(Transaction) error) error
ReadTransaction(func(Transaction) error) error
Close() error
}
Backend represents a database
type Bucket ¶
type Bucket interface {
Transaction
Get(key []byte) (value []byte)
Put(key, value []byte) error
Delete(key []byte) error
Cursor() Cursor
ForEach(func(key, value []byte) error) error
}
Bucket represents a bucket
type Cursor ¶
type Cursor interface {
Seek(seekTo []byte) (key, value []byte)
First() (key, value []byte)
Next() (key, value []byte)
Prev() (key, value []byte)
Last() (key, value []byte)
}
Cursor represents a cursor
type Initializer ¶ added in v0.1.1
Initializer represents a Backend initializer
Click to show internal directories.
Click to hide internal directories.