routes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthRoute added in v1.0.0

func HealthRoute(a *fiber.App)

HealthRoute registers a lightweight health check endpoint.

func KubernetesProbeRoutes added in v1.0.0

func KubernetesProbeRoutes(a *fiber.App, checks ...ReadinessCheck)

KubernetesProbeRoutes registers liveness and readiness endpoints for Kubernetes probes.

func LivezRoute added in v1.0.0

func LivezRoute(a *fiber.App)

LivezRoute registers a lightweight liveness endpoint.

func NotFoundRoute

func NotFoundRoute(a *fiber.App)

NotFoundRoute func for describe 404 Error route.

func ReadyzRoute added in v1.0.0

func ReadyzRoute(a *fiber.App, checks ...ReadinessCheck)

ReadyzRoute registers a readiness endpoint with pluggable checks.

Types

type ReadinessCheck added in v1.0.0

type ReadinessCheck func() error

ReadinessCheck is a custom function that verifies whether an API dependency is ready. Return nil when healthy, or an error when the dependency is unavailable.

Jump to

Keyboard shortcuts

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