Skip to main content

Module http_server

Module http_server 

Source
Expand description

HTTP server for alertd daemon control and metrics.

Structs§

ServerState
StatusResponse

Functions§

handle_health
handle_index
handle_metrics
handle_reload
POST /reload — refresh runtime state (re-register backup capabilities, pick up /etc/bestool/backups changes) without restarting.
handle_restart
POST /restart — ask the daemon to exit so the service manager restarts it (e.g. to pick up a new binary). Triggered after a short delay so this response reaches the client before the daemon exits.
handle_status
handle_task_endpoint
Route handler for /tasks/:task/:endpoint.
start_server