bolt_store

package
v0.0.0-...-fdc8e6b Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltStore

type BoltStore struct {
	DB *bolt.DB

	Bucket string
	// contains filtered or unexported fields
}

func NewBoltStore

func NewBoltStore(path, bucketname string) (*BoltStore, error)

func (*BoltStore) Close

func (bs *BoltStore) Close()

func (*BoltStore) Flush

func (bs *BoltStore) Flush() error

func (*BoltStore) Insert

func (bs *BoltStore) Insert(key string, value []byte) error

func (*BoltStore) InsertBatch

func (bs *BoltStore) InsertBatch(key string, value []byte) error

InsertBatch seems like it's not worth it...

func (*BoltStore) Len

func (bs *BoltStore) Len() uint

func (*BoltStore) Remove

func (bs *BoltStore) Remove(key string) error

func (*BoltStore) Retrieve

func (bs *BoltStore) Retrieve(key string) ([]byte, error)

func (*BoltStore) Size

func (bs *BoltStore) Size() uint64

Jump to

Keyboard shortcuts

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