Skip to main content

start_admin_server

Function start_admin_server 

Source
pub async fn start_admin_server(
    addr: SocketAddr,
    handler: Arc<ApiHandler>,
    admin_api_key: String,
    admin_auth_disabled: bool,
) -> Result<()>
Expand description

Starts the admin HTTP server.

ยงArguments

  • addr - Socket address to bind (e.g., โ€œ0.0.0.0:6191โ€)
  • handler - API handler with references to health, metrics, reloader, etc.
  • admin_api_key - Required API key for authenticating admin operations
  • admin_auth_disabled - Disables admin authentication (local-only)