Skip to main content

HEALTH_CHECKS

Static HEALTH_CHECKS 

Source
pub static HEALTH_CHECKS: DistributedSlice<[fn() -> Box<dyn HealthCheck>]>
Expand description

Link-time registry of health-check factories.

use rtb_cli::health::{HealthCheck, HEALTH_CHECKS};
use rtb_app::linkme::distributed_slice;

#[distributed_slice(HEALTH_CHECKS)]
fn register() -> Box<dyn HealthCheck> { Box::new(MyCheck) }