database

package
v0.2202.7 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package database implements a database backed storage backend.

Index

Constants

View Source
const (
	// BackendNameBadgerDB is the name of the BadgeDB backed database backend.
	BackendNameBadgerDB = "badger"

	// DBFileBadgerDB is the default BadgerDB backing store filename.
	DBFileBadgerDB = "mkvs_storage.badger.db"
)

Variables

This section is empty.

Functions

func DefaultFileName

func DefaultFileName(backend string) string

DefaultFileName returns the default database filename for the specified backend.

func New

func New(cfg *api.Config) (api.LocalBackend, error)

New constructs a new database backed storage Backend instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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