database

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(Badger *badger.DB, key []byte) (bool, error)

func Get

func Get(Badger *badger.DB, key string) (string, error)

func GetPrefix

func GetPrefix(Badger *badger.DB, key string) (map[string]string, error)

func Put

func Put(Badger *badger.DB, key string, value string) error

Types

type Response

type Response struct {
	Explanation      string
	ErrorExplanation string
	Error            bool
	Success          bool
	Data             map[string]any
}

Jump to

Keyboard shortcuts

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