Skip to main content

Module admin

Module admin 

Source
Expand description

Admin API for proxy introspection.

Provides endpoints for checking backend health and proxy status.

Structs§

AdminState
Cached health status, updated periodically by a background task.
BackendMeta
Per-backend metadata passed in from config at startup.
BackendStatus
Health status of a single backend, updated by the background health checker.

Functions§

admin_router
Build the admin API router.
spawn_health_checker
Spawn a background task that periodically health-checks backends. Returns the AdminState that admin endpoints read from.

Type Aliases§

MetricsHandle
Metrics handle type – wraps the Prometheus handle when the feature is enabled.