bolt

package
v0.0.0-...-e60b1df Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(file string) (store.Store, error)

Types

type Store

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

func (Store) Delete

func (s Store) Delete(ctx context.Context, key []byte) error

func (Store) Get

func (s Store) Get(ctx context.Context, key []byte) (store.Item, bool)

func (Store) PrefixScan

func (s Store) PrefixScan(ctx context.Context, prefix []byte) ([]store.Item, error)

func (Store) Set

func (s Store) Set(ctx context.Context, i store.Item) error

Jump to

Keyboard shortcuts

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