database

package
v0.2103.7 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 11 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.Backend, 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