backend

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Backends = map[string]Factory{}

Backends associates backend type names to constructor functions

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Exists() bool
	Save(data []byte) error
	Load() ([]byte, error)
}

Backend implements the common backend operations

type Factory

type Factory interface {
	New(name string, conf map[string]interface{}) (Backend, error)
	Flags() *pflag.FlagSet
}

Factory can instantiate a new Backend with New, and other static backend-related functions.

Jump to

Keyboard shortcuts

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