database

package
v0.7.0-beta Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: GPL-3.0 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 {
	// contains filtered or unexported fields
}

func Open

func Open(path string) (Database, error)

func (Database) Backup

func (d Database) Backup(w io.Writer) error

func (Database) Close

func (d Database) Close() error

func (Database) DB

func (d Database) DB() *badger.DB

func (Database) Load

func (d Database) Load(r io.Reader) error

func (Database) MissingKeys

func (d Database) MissingKeys(ctx context.Context, keys [][]byte) ([][]byte, error)

MissingKeys return missing keys in database.

func (Database) Worker

func (d Database) Worker(ctx context.Context)

Jump to

Keyboard shortcuts

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