handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Healthy

func Healthy() http.Handler

Healthy return OK when probed

func Modbus

func Modbus(
	safeConfig *structures.SafeConfig,
	logger log.Logger,
) http.Handler

Modbus serves the modbus page.

The returned handler is already instrumented for Prometheus.

func Quit

func Quit(quit chan bool, logger log.Logger) http.Handler

Quit send boolean chan to goroutine for gracefully quit application

func Ready

func Ready() http.Handler

Ready return OK when probed

func ReloadConfig

func ReloadConfig(reload chan bool, logger log.Logger) http.Handler

ReloadConfig reload config

func ShowConfig

func ShowConfig(safeConfig *structures.SafeConfig, logger log.Logger) http.Handler

ShowConfig show config

func Static

func Static(root http.FileSystem, prefix string) http.Handler

Static serves the static files from the provided http.FileSystem.

func Status

func Status(
	root http.FileSystem,
	flags map[string]string,
	pathPrefix string,
	logger log.Logger,
) http.Handler

Status serves the status page.

Types

This section is empty.

Jump to

Keyboard shortcuts

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