pub type ReadinessCheck = Arc<dyn Fn() -> Pin<Box<dyn Future<Output = Value> + Send>> + Send + Sync>;Expand description
Async readiness check callback for the /readyz endpoint.
Returns a JSON object with at least a "ready" boolean.
When ready is false, the endpoint returns HTTP 503.
Aliased Typeยง
pub struct ReadinessCheck { /* private fields */ }