Documentation ¶
Index ¶
- Constants
- func Plugins() []kv.Plugin
- type Iterator
- type Partition
- type Plugin
- type RootStore
- type RootStoreConfig
- type Store
- type Transaction
- func (transaction *Transaction) Commit() error
- func (transaction *Transaction) Delete(key []byte) error
- func (transaction *Transaction) Get(key []byte) ([]byte, error)
- func (transaction *Transaction) Keys(keys keys.Range, order kv.SortOrder) (kv.Iterator, error)
- func (transaction *Transaction) Metadata() ([]byte, error)
- func (transaction *Transaction) Put(key, value []byte) error
- func (transaction *Transaction) Rollback() error
- func (transaction *Transaction) SetMetadata(metadata []byte) error
Constants ¶
const (
// DriverName describes the name for this driver
DriverName = "bbolt"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator implements kv.Iterator on top of a bbolt cursor
type Partition ¶
type Partition struct { kv.Snapshotter // contains filtered or unexported fields }
Partition implements kv.Partition on top of a bbolt store bucket
func (*Partition) Begin ¶
func (partition *Partition) Begin(writable bool) (kv.Transaction, error)
Begin implements Partition.Begin
type Plugin ¶
type Plugin struct { }
Plugin implements kv.Plugin for bbolt
func (*Plugin) NewRootStore ¶
NewRootStore implements Plugin.NewRootStore
type RootStore ¶
type RootStore struct {
// contains filtered or unexported fields
}
RootStore implements kv.RootStore on top of a single bbolt store.
func NewRootStore ¶
func NewRootStore(config RootStoreConfig) (*RootStore, error)
NewRootStore creates a new bbolt root store
type RootStoreConfig ¶
type RootStoreConfig struct { // Path is the path to the bbolt data directory Path string }
RootStoreConfig contains configuration options for a bbolt root store
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements kv.Store on top of a bbolt store bucket
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
Transaction implements kv.Transaction on top of a bbolt transaction.
func (*Transaction) Commit ¶
func (transaction *Transaction) Commit() error
Commit implements Transaction.Commit
func (*Transaction) Delete ¶
func (transaction *Transaction) Delete(key []byte) error
Delete implements Transaction.Delete
func (*Transaction) Get ¶
func (transaction *Transaction) Get(key []byte) ([]byte, error)
Get implements Transaction.Get
func (*Transaction) Metadata ¶
func (transaction *Transaction) Metadata() ([]byte, error)
Metadata implements Transaction.Metadata
func (*Transaction) Put ¶
func (transaction *Transaction) Put(key, value []byte) error
Put implements Transaction.Put
func (*Transaction) Rollback ¶
func (transaction *Transaction) Rollback() error
Rollback implements Transaction.Rollback
func (*Transaction) SetMetadata ¶
func (transaction *Transaction) SetMetadata(metadata []byte) error
SetMetadata implements Transaction.SetMetadata