bolt

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileFactory

func FileFactory(path string) store.StorageFactory

FileFactory generates a bolt storage implementation

Types

type Store

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

Store is the storage implementation backed by a bolt files store

func NewFileStore

func NewFileStore(f string) (*Store, error)

NewFileStore creates a new storage implementation backed by the bolt file store

func (Store) Close

func (s Store) Close() error

Close closes the bolt file store

func (Store) Get

func (s Store) Get(key store.Key) (store.Element, error)

Get retrieves a value from the bolt file storage based on the given key

func (Store) Metadata

func (s Store) Metadata() store.Metadata

Metadata returns internal stats regarding the bolt file storage implementation

func (Store) Put

func (s Store) Put(element store.Element) error

Put writes an element to the bolt file storage

Jump to

Keyboard shortcuts

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