objbadger

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 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 {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(db *badger.DB) *Store

func (*Store) Clear

func (s *Store) Clear(prefix []byte) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) Delete

func (s *Store) Delete(k []byte) error

func (*Store) Exist

func (s *Store) Exist(k []byte) bool

func (*Store) Filter

func (s *Store) Filter(prefix []byte) (map[string][]byte, error)

func (*Store) FilterKey

func (s *Store) FilterKey(prefix []byte) (keys [][]byte, err error)

func (*Store) Get

func (s *Store) Get(k []byte) ([]byte, error)

func (*Store) Set

func (s *Store) Set(k, v []byte) error

type Txn

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

func NewTxn

func NewTxn(db *badger.DB) *Txn

func (*Txn) Clear

func (t *Txn) Clear([]byte) error

func (*Txn) Close

func (t *Txn) Close() error

func (*Txn) Commit

func (t *Txn) Commit() error

func (*Txn) Delete

func (t *Txn) Delete(k []byte) error

func (*Txn) Discard

func (t *Txn) Discard()

func (*Txn) Exist

func (t *Txn) Exist(k []byte) bool

func (*Txn) Filter

func (t *Txn) Filter(prefix []byte) (map[string][]byte, error)

func (*Txn) FilterKey

func (t *Txn) FilterKey(prefix []byte) (keys [][]byte, err error)

func (*Txn) Get

func (t *Txn) Get(k []byte) ([]byte, error)

func (*Txn) PartialCommit

func (t *Txn) PartialCommit() error

func (*Txn) Set

func (t *Txn) Set(k, v []byte) error

Jump to

Keyboard shortcuts

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