prototype

package
v0.0.0-...-20904cb Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *util.Config, logger *log.Logger) ([]services.Service, error)

Types

type Badger

type Badger struct {
	// contains filtered or unexported fields
}

func (*Badger) Get

func (b *Badger) Get(key string) (string, error)

Get returns the value for the given key.

func (*Badger) GetAllKeys

func (b *Badger) GetAllKeys() []string

GetAllKeys returns all the keys.

func (*Badger) GetByPrefix

func (b *Badger) GetByPrefix(prefix string, allVersions bool) map[string]string

GetByPrefix return all the key value pairs where the key starts with some prefix.

func (*Badger) Set

func (b *Badger) Set(key string, value []byte) error

Set the given key with the given value.

type Prototype

type Prototype struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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