bolt_driver

package
v0.0.0-...-a8cc34e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2020 License: LGPL-3.0, LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStoreBackendBolt

func NewStoreBackendBolt(path string) (backend.StoreBackend, error)

Types

type StoreBackendBolt

type StoreBackendBolt struct {
	// contains filtered or unexported fields
}

func (*StoreBackendBolt) Close

func (st *StoreBackendBolt) Close()

func (*StoreBackendBolt) Shrink

func (st *StoreBackendBolt) Shrink()

func (*StoreBackendBolt) Update

func (st *StoreBackendBolt) Update(fn func(txn backend.StoreWriter) error) error

func (*StoreBackendBolt) View

func (st *StoreBackendBolt) View(fn func(txn backend.StoreReader) error) error

type StoreBackendBoltTx

type StoreBackendBoltTx struct {
	// contains filtered or unexported fields
}

func (*StoreBackendBoltTx) Delete

func (r *StoreBackendBoltTx) Delete(key []byte) error

func (*StoreBackendBoltTx) Get

func (r *StoreBackendBoltTx) Get(key []byte) ([]byte, error)

func (*StoreBackendBoltTx) Iterate

func (r *StoreBackendBoltTx) Iterate(prefix []byte, fn func(key []byte, value []byte) error) error

func (*StoreBackendBoltTx) Set

func (r *StoreBackendBoltTx) Set(key []byte, value []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL