health

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(mux *http.ServeMux, readyFn func() bool)

RegisterRoutes adds /healthz, /readyz, and /debug/pprof/* to the given mux. If readyFn is nil, /readyz always returns 200.

func Serve

func Serve(ctx context.Context, addr string, readyFn func() bool, logger *slog.Logger)

Serve creates a standalone HTTP server with health and pprof routes. It blocks until ctx is cancelled, then shuts down gracefully.

Types

This section is empty.

Jump to

Keyboard shortcuts

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