exthealth

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 3 Imported by: 34

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLivenessProbe

func AddLivenessProbe()

AddLivenessProbe registers an HTTP handler for the liveness probe. The liveness probe reports HTTP 200 as soon as the HTTP server is up and running.

func AddProbes added in v1.7.6

func AddProbes()

AddProbes registers HTTP handlers for the liveness and readiness probes.

func AddReadinessProbe

func AddReadinessProbe()

AddReadinessProbe registers an HTTP handler for the readiness probe. The readiness probe reports an error (HTTP 503) when the SetReady function is called with false. Default readiness state is true.

func SetReady

func SetReady(ready bool)

SetReady sets the readiness state of the service. If the service is not ready the readiness probe will report an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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