health

package
v4.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadinessHandler

func ReadinessHandler() http.Handler

ReadinessHandler will return a 200 OK or 503 "Service Unavailable" status depending on whether the Ready or Unready functions have been called.

The Ready() method must be called to begin returning 200 OK.

func Ready

func Ready()

Ready instructs the ReadinessHandler to begin serving 200 OK status.

func Unready

func Unready()

Unready instructs the ReadinessHandler to begin serving 503 Service Unavailable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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