health

package
v0.0.0-...-36a8cee Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LivenessHandler

func LivenessHandler(probe Probes) http.Handler

LivenessHandler returns readiness http handlers for health

func ReadinessHandler

func ReadinessHandler(probe Probes) http.Handler

ReadinessHandler returns readiness http handlers for health

Types

type Probe

type Probe func() bool

Probe is a type alias for a function.

type Probes

type Probes interface {
	Liveness() bool
	Readiness() bool
}

Probes is the interface for liveness and readiness probes

Jump to

Keyboard shortcuts

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