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.
Click to show internal directories.
Click to hide internal directories.