badger

package
v0.2100.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package badger contains convenience helpers for integrating BadgerDB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogAdapter

func NewLogAdapter(logger *logging.Logger) badger.Logger

NewLogAdapter returns a badger.Logger backed by an oasis-node logger.

Types

type GCWorker

type GCWorker struct {
	// contains filtered or unexported fields
}

GCWorker is a BadgerDB value log GC worker.

func NewGCWorker

func NewGCWorker(logger *logging.Logger, db *badger.DB) *GCWorker

NewGCWorker creates a new BadgerDB value log GC worker for the provided db, logging to the specified logger.

func (*GCWorker) Close

func (gc *GCWorker) Close()

Close halts the GC worker.

Jump to

Keyboard shortcuts

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