health

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusUp       = "UP"
	StatusReady    = "READY"
	StatusNotReady = "NOT_READY"
)

Variables

This section is empty.

Functions

func LivenessHandler

func LivenessHandler(w http.ResponseWriter, r *http.Request)

func ReadinessHandler

func ReadinessHandler(w http.ResponseWriter, r *http.Request)

func SetReady

func SetReady(ready bool)

Types

type Response

type Response struct {
	Timestamp time.Time `json:"timestamp"`
	Status    string    `json:"status"`
}

Jump to

Keyboard shortcuts

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