Documentation
¶
Overview ¶
Package health adds liveness and readiness endpoints to a Tern app:
ternApp(kit.WithPlugins(health.New(
health.Check("database", db.PingContext),
)))
GET /healthz reports that the process is up. GET /readyz runs every check and reports 503 if one fails, or while the app is shutting down, so a load balancer stops sending traffic before the server stops.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Plugin)
Option configures the plugin.
Click to show internal directories.
Click to hide internal directories.