server

package
v0.0.0-...-52be9fe Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Layout layout provided by the server.
	Layout layout
	// KV Key/Value data store.
	KV *kv.KVStore
	// Log logging instance.
	Log = logging.MustGetLogger("default")
	// Cmd command line parser.
	Cmd *cobra.Command
	// Cfg config file parser.
	Cfg *viper.Viper
	// Registry item registry
	Registry *registry.Registry

	// InfluxDB database
	InfluxDB *influxdb.InfluxDB
)

Functions

func GetItem

func GetItem(id string) item.Item

func Start

func Start(name string, onInit func())

Types

type Auth

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

func (*Auth) ServeHTTP

func (a *Auth) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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