rust-health-endpoint

Crates.iorust-health-endpoint
lib.rsrust-health-endpoint
version0.1.2
sourcesrc
created_at2023-04-24 22:02:25.716611
updated_at2023-04-25 05:30:22.636641
descriptionMinimal health (and signal) endpoint for apps running in containerized environments
homepage
repository
max_upload_size
id847977
size12,664
Jakub Filipek (balbok0)

documentation

README

Rust Health Endpoint

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.

Commit count: 0

cargo fmt