httphandlers

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 5 Imported by: 92

Documentation

Index

Constants

View Source
const (
	// BuildInfoPath follows the FT convention of prefixing metadata with an underscore
	BuildInfoPath = "/__build-info"
	// BuildInfoPathDW follows the DropWizard convention
	BuildInfoPathDW = "/build-info"
)
View Source
const (
	// PingPath follows the general FT standards for path as it starts with an underscore, although technically Ping is not a FT Standard healthcheck
	PingPath = "/__ping"
	// PingPathDW is the DropWizard equivalent path, here for compatibility for monitors that typically talk to DropWizard ms
	PingPathDW = "/ping"
)
View Source
const (
	// GTGPath follows the FT convention of prefixing metadata with an underscore
	GTGPath = "/__gtg"
)

Variables

This section is empty.

Functions

func BuildInfoHandler

func BuildInfoHandler(w http.ResponseWriter, r *http.Request)

BuildInfoHandler provides a JSON representation of the build-info.

func NewGoodToGoHandler

func NewGoodToGoHandler(checker gtg.StatusChecker) func(http.ResponseWriter, *http.Request)

NewGoodToGoHandler is used to construct a new GoodToGoHandler

func PingHandler

func PingHandler(w http.ResponseWriter, r *http.Request)

PingHandler is a simple handler that always responds with pong as text

Types

This section is empty.

Jump to

Keyboard shortcuts

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