keydb

package
v0.0.0-...-f574766 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyIDNotFound          = errors.New("KeyID Not Found")
	KeyPoolEnvValueIsEmpty = errors.New("KEY_POOL Env value is empty")
)

Functions

This section is empty.

Types

type KeyDB

type KeyDB interface {
	GetSecret(keyID string) (string, error)
}

func NewByKeyValuePair

func NewByKeyValuePair(apiKey, secret string) KeyDB

func NewBySlice

func NewBySlice(raw [][2]string) KeyDB

func NewFromENV

func NewFromENV() (KeyDB, error)

func NewFromJSON

func NewFromJSON(jsonKeyPool string) (KeyDB, error)

Jump to

Keyboard shortcuts

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