Skip to main content

Crate hyperlane_plugin_health

Crate hyperlane_plugin_health 

Source
Expand description

hyperlane-plugin-health

High-concurrency /healthz, /livez, and /readyz health probe plugin for Hyperlane with concurrent async HealthCheck evaluation, per-probe timeout, TTL snapshot caching, and lock-free graceful drain signaling.

Structs§

CheckOutcome
Result returned by a single HealthCheck::check invocation.
CheckReport
Serialized report for one executed probe in a HealthReport.
HealthConfig
Endpoint paths, timeout, and snapshot cache configuration for HealthPlugin.
HealthHook
Opt-in ServerHook answering /healthz, /livez, and /readyz probes.
HealthPlugin
Process-wide HealthPlugin singleton storing HealthConfig and HealthRegistry.
HealthRegistry
Thread-safe registry of async HealthCheck probes with lock-free drain state and snapshot cache.
HealthReport
Top-level JSON health report emitted on /healthz, /livez, and /readyz.

Enums§

HealthStatus
Aggregate or individual probe health state.

Constants§

DEFAULT_HEALTH_CACHE_TTL_MS
Default health report cache TTL in milliseconds (0 disables caching).
DEFAULT_HEALTH_CHECK_TIMEOUT_MS
Default per-check execution timeout in milliseconds (2 seconds).
DEFAULT_HEALTH_PATH
Default combined health endpoint path.
DEFAULT_LIVE_PATH
Default liveness probe endpoint path.
DEFAULT_READY_PATH
Default readiness probe endpoint path.

Traits§

HealthCheck
Pluggable asynchronous health check probe (database, Redis, disk, upstream, etc.).

Type Aliases§

HealthFuture
Boxed Send future returned by an async HealthCheck.