Documentation ¶
Index ¶
- func HealthHandlerFunction(w http.ResponseWriter, _ *http.Request)
- func HealthHandlerFunctionWithChecks(w http.ResponseWriter, _ *http.Request, checks []HealthCheck)
- func WaitForHealthy(server *http.Server)
- func WaitForHealthyWithClient(server *http.Server, client httpClient, url string) error
- type HealthCheck
- type HealthInfo
- type NoopCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthHandlerFunction ¶
func HealthHandlerFunction(w http.ResponseWriter, _ *http.Request)
func HealthHandlerFunctionWithChecks ¶
func HealthHandlerFunctionWithChecks(w http.ResponseWriter, _ *http.Request, checks []HealthCheck)
func WaitForHealthy ¶
Types ¶
type HealthCheck ¶
type HealthInfo ¶
type HealthInfo struct {
Status string `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.