package
Version:
v0.0.0-...-0d805c2
Opens a new window with list of versions in this module.
Published: Jun 10, 2020
License: BSD-2-Clause
Opens a new window with license information.
Imports: 23
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New returns a new HTTP server with a router mux.
type Error struct {
Check string `json:"check"`
Message string `json:"message"`
}
Error contains the error returned by an unhealthy service, as well as the service name.
Healthz is a health status middleware.
func (*Healthz) Handler ¶
Handler is the health status middleware HTTP handler.
type Response struct {
Errors []Error `json:"errors"`
}
Response is the JSON-encoded health check result.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.