db

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

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

func Get

func Get(db *badger.DB, keys []string) (map[string]*api.ObjectDetail, error)

func GetKeys

func GetKeys(db *badger.DB) []string

func GetPrefix

func GetPrefix(db *badger.DB, prefix string) (map[string]*api.ObjectDetail, error)

func GetPrefixKeys

func GetPrefixKeys(db *badger.DB, prefix string) []string

func GetRegex

func GetRegex(db *badger.DB, regex string) (map[string]*api.ObjectDetail, error)

func GetRegexKeys

func GetRegexKeys(db *badger.DB, regex string) ([]string, error)

func ScanBound

func ScanBound(db *badger.DB, bound *api.Bound, keys []string) (map[string]*api.ObjectDetail, error)

func ScanPrefixBound

func ScanPrefixBound(db *badger.DB, bound *api.Bound, prefix string) (map[string]*api.ObjectDetail, error)

func ScanRegexBound

func ScanRegexBound(db *badger.DB, bound *api.Bound, rgex string) (map[string]*api.ObjectDetail, error)

func Set

func Set(db *badger.DB, maps *maps.Client, hub *stream.Hub, obj *api.Object) (*api.ObjectDetail, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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