Skip to main content

app_with_health

Function app_with_health 

Source
pub fn app_with_health(
    registry: Arc<dyn Registry>,
    health: Arc<HealthState>,
) -> Router
Expand description

Builds the router with the health pulse wired to an existing producer.

The e-stop and the operator credential stay the AuthState::default every other builder but app_with_auth uses; call that one directly to wire real ones alongside a real health.