store

package
v0.0.0-...-f07e40c Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEntryToDb

func AddEntryToDb(db *badger.DB, clientname string, m []byte) error

func ByteToStruct

func ByteToStruct[T any](b []byte, v T) (T, error)

func DeleteEntryToDb

func DeleteEntryToDb(db *badger.DB, keys []string) []error

func InitDB

func InitDB() (*badger.DB, error)

func PrefixDb

func PrefixDb(db *badger.DB, key string) (map[string][]byte, error)

func StructToDB

func StructToDB(s interface{}) bytes.Buffer

func ViewEntryDb

func ViewEntryDb(db *badger.DB, key string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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