health

package
v0.4.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package health implements simple checks for readiness and liveness that will be invoked by the loadbalancer frequently

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerLiveness added in v0.1.19

func HandlerLiveness() http.Handler

HandlerLiveness returns the liveness handler that always return OK and 200

func HandlerReadiness added in v0.1.19

func HandlerReadiness() http.Handler

HandlerReadiness returns the readiness handler. This handler can be configured with ReadinessCheck(func(http.ResponseWriter,*http.Request)), the default behavior is a liveness check

func SetCustomReadinessCheck added in v0.1.19

func SetCustomReadinessCheck(check func(http.ResponseWriter, *http.Request))

ReadinessCheck allows to set a different function for the readiness check. The default readiness check is the same as the liveness check and does always return OK

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL