health
Module: health
Section titled “Module: health”Contents
Section titled “Contents”Structs
HealthcheckServer- Minimal HTTP server that serves a/healthzreadiness probe.
Functions
mark_not_ready- Mark the health endpoint not ready.mark_ready- Mark the health endpoint ready.readiness_flag- Shared readiness flag observed by/healthz.
firma_sidecar::health::HealthcheckServer
Section titled “firma_sidecar::health::HealthcheckServer”Struct
Minimal HTTP server that serves a /healthz readiness probe.
Methods:
fn bind(addr: SocketAddr, cancel: CancellationToken, ready: Arc<AtomicBool>) -> Result<Self, std::io::Error>- Creates a new health-check server bound toaddr.fn serve(self: Self)- Runs the accept loop until the cancellation token fires.
Trait Implementations:
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
firma_sidecar::health::mark_not_ready
Section titled “firma_sidecar::health::mark_not_ready”Function
Mark the health endpoint not ready.
fn mark_not_ready(ready: &std::sync::atomic::AtomicBool)firma_sidecar::health::mark_ready
Section titled “firma_sidecar::health::mark_ready”Function
Mark the health endpoint ready.
fn mark_ready(ready: &std::sync::atomic::AtomicBool)firma_sidecar::health::readiness_flag
Section titled “firma_sidecar::health::readiness_flag”Function
Shared readiness flag observed by /healthz.
fn readiness_flag() -> std::sync::Arc<std::sync::atomic::AtomicBool>