Documentation ¶
Overview ¶
Package health defines standard interfaces and utilities for health checks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckFunc ¶
CheckFunc function signature for health checks.
func Check ¶
Check return a CheckFunc for checking if the target server is OK or not. The target server can be considered OK, if its return status code is "200 OK". If the given addr is in simple form of "server:port", it will be transformed to http://server:port/internal/liveness
Click to show internal directories.
Click to hide internal directories.