gleamunison/health
Types
pub type HealthCheck {
HealthCheck(
name: String,
check: fn() -> Bool,
description: String,
)
}
Constructors
-
HealthCheck( name: String, check: fn() -> Bool, description: String, )
pub type HealthStatus {
Healthy(String)
Degraded(String)
Unhealthy(String)
}
Constructors
-
Healthy(String) -
Degraded(String) -
Unhealthy(String)
Values
pub fn run_all() -> HealthStatus
pub fn run_checks(checks: List(HealthCheck)) -> HealthStatus