database

package
v0.0.0-...-e8f684e Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	DB *badger.DB
}

func GetDatabase

func GetDatabase(dir string) (*Database, error)

func (*Database) Iterator

func (db *Database) Iterator(prefetchValues bool, fn func(*badger.Iterator) error) error

func (*Database) Read

func (db *Database) Read(key []byte) ([]byte, error)

func (*Database) Update

func (db *Database) Update(key []byte, value []byte) error

Jump to

Keyboard shortcuts

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