Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶ added in v0.11.0
Configure configures router with a /healthz endpoint using a handler created with NewHandler.
func NewHandler ¶
func NewHandler(client Client) gin.HandlerFunc
NewHandler returns a gin.HandlerFunc that provides a health check endpoint behavior. On each request it queries client.IsHealthy and returns a 200 if the backend is healthy, else a 500.
Types ¶
Click to show internal directories.
Click to hide internal directories.