Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LivenessCheck represents liveness check. LivenessCheck = "liveness" // ReadinessCheck represents readiness check. ReadinessCheck = "readiness" )
View Source
const ExternalConfigName = "healthcheck"
ExternalConfigName is the external config name of health check.
Variables ¶
This section is empty.
Functions ¶
func Checker ¶
func Checker(checker HealthChecker) nirvana.Configurer
Checker returns a configurer to set health checker.
func CheckerWithType ¶ added in v0.2.2
func CheckerWithType(checker HealthCheckerWithType) nirvana.Configurer
CheckerWithType returns a configurer to set health checker with a type parameter.
func Disable ¶
func Disable() nirvana.Configurer
Disable returns a configurer to disable healthcheck.
func Path ¶
func Path(path string) nirvana.Configurer
Path returns a configurer to set health check path.
Types ¶
type HealthChecker ¶
HealthChecker checks if current server is healthy.
type HealthCheckerWithType ¶ added in v0.2.2
HealthCheckerWithType checks if current server is healthy. The `checkType` parameter indicates the type of health check, such as liveness or readiness.
Click to show internal directories.
Click to hide internal directories.