badger

package
v0.2501.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 7 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) Start added in v0.2500.0

func (gc *GCWorker) Start()

Start starts the GC worker.

func (*GCWorker) Stop added in v0.2500.0

func (gc *GCWorker) Stop()

Stop halts the GC worker.

Jump to

Keyboard shortcuts

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