service

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigHandler

func NewConfigHandler(config interface{}) func(http.ResponseWriter, *http.Request)

NewConfigHandler returns an HTTP handler that serves a page with the specified TOML config.

func NewInfoHandler

func NewInfoHandler() func(http.ResponseWriter, *http.Request)

NewInfoHandler returns an HTTP handler that serves a page with basic info about the process.

Types

type StatusPages

type StatusPages map[string]http.HandlerFunc

StatusPages maps from a page name to the HTTP handler serving that page.

func (StatusPages) Register

func (s StatusPages) Register(serveMux *http.ServeMux, elemId string) error

Register registers the pages with the supplied HTTP server. Additionally it registers the main page that links to all the other pages.

Jump to

Keyboard shortcuts

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