badgerdb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	DB *badger.DB
}

func (Store) BulkSave

func (b Store) BulkSave(m map[store.Key][]byte) error

func (Store) Close

func (b Store) Close() error

func (Store) Delete

func (b Store) Delete(keys ...store.Key) error

func (Store) Get

func (b Store) Get(key store.Key) ([]byte, error)

func (Store) List

func (b Store) List(prefix store.TypeKey, process func([]byte) error) error

func (Store) ReadLazy

func (b Store) ReadLazy(key store.FieldKey, w io.Writer) error

func (Store) Save

func (b Store) Save(key store.Key, bytes []byte) error

func (Store) WriteLazy

func (b Store) WriteLazy(key store.FieldKey, r io.Reader) error

Jump to

Keyboard shortcuts

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