repository

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDBClosed = fmt.Errorf("database is closed")

Functions

func Backup

func Backup(db *badger.DB, bt BackupType) error

func NewBadger

func NewBadger(dir string, log *zap.Logger) (*badger.DB, error)

func Restore

func Restore(db *badger.DB) error

Types

type BackupType

type BackupType uint8
const (
	BackupStart BackupType = iota
	BackupStop
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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