persistence

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerLogr

type BadgerLogr struct {
	logr.Logger
}

BadgerLogr wraps a logr.Logger and implements the badger.Logger interface

func (*BadgerLogr) Debugf

func (log *BadgerLogr) Debugf(format string, a ...interface{})

func (*BadgerLogr) Errorf

func (log *BadgerLogr) Errorf(format string, a ...interface{})

func (*BadgerLogr) Infof

func (log *BadgerLogr) Infof(format string, a ...interface{})

func (*BadgerLogr) Warningf

func (log *BadgerLogr) Warningf(format string, a ...interface{})

type BadgerOptions

type BadgerOptions = badger.Options

type Persistence

type Persistence interface {
	adapters.Cache
	adapters.Store
}

Persistence represents objects that provide data storage and persistence, eventual or immediate, for use as both Cache and/or Store

func NewBadger

func NewBadger(path string, options *BadgerOptions) (Persistence, error)

Jump to

Keyboard shortcuts

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