badger

package
v0.0.0-...-08795d0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (storage.Storage, error)

New defines initialization of Badger

Types

type Badger

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

Badger defines struct for db

func (*Badger) Delete

func (b *Badger) Delete(key []byte) error

Delete removes key-value pair

func (*Badger) Get

func (b *Badger) Get(key []byte) ([]byte, error)

Get getting value by the key

func (*Badger) Set

func (b *Badger) Set(key, value []byte) error

Set adds new key-value pair

Jump to

Keyboard shortcuts

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