Crates.io | rust-health-endpoint |
lib.rs | rust-health-endpoint |
version | 0.1.2 |
source | src |
created_at | 2023-04-24 22:02:25.716611 |
updated_at | 2023-04-25 05:30:22.636641 |
description | Minimal health (and signal) endpoint for apps running in containerized environments |
homepage | |
repository | |
max_upload_size | |
id | 847977 |
size | 12,664 |
This is a repo for use in personal projects. It allows running a health endpoint for use in containerized setting (docker, kube etc.) with the healthiness report exposed as a tokio broadcast message.
let health_monitor = HealthMonitor::new(Duration::from_millis(5_000));
let publisher = health_monitor.get_publisher();
// Run code etc.
futures::join(
health_monitor.run(),
// Your task.
);
Since it's a personal use it's prone to changes and there is no guarantees on compatibility.