cmd

package
v0.39.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: AGPL-3.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = rootCmd

Functions

func Execute

func Execute()

func InitBadgerAndPebble added in v0.39.2

func InitBadgerAndPebble() (bdb *badger.DB, pdb *pebble.DB, err error)

InitBadgerAndPebble initializes the badger and pebble storages

func InitStorages

func InitStorages() (*storage.All, *badger.DB)

InitStorages initializes the badger storages

func WithBadgerAndPebble added in v0.39.2

func WithBadgerAndPebble(f func(*badger.DB, *pebble.DB) error) error

WithBadgerAndPebble runs the given function with the badger and pebble storages it ensures that the storages are closed after the function is done

func WithStorage added in v0.39.2

func WithStorage(f func(storage.DB) error) error

WithStorage runs the given function with the storage dependending on the flags only one flag (datadir / pebbledir) is allowed to be set

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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