pleme-health

pleme-health library


Keywords
axum, health, health-check, kubernetes, monitoring
License
MIT

Documentation

pleme-health

pleme-health library

Installation

[dependencies]
pleme-health = "0.1"

Usage

use pleme_health::HealthChecker;

let health = HealthChecker::new()
    .add_postgres(pool.clone())
    .add_redis(redis.clone())
    .build();

// Mount at /health
let app = Router::new().merge(health.router());

Development

This project uses Nix for reproducible builds:

nix develop            # Dev shell with Rust toolchain
nix run .#check-all    # cargo fmt + clippy + test
nix run .#publish      # Publish to crates.io (--dry-run supported)
nix run .#regenerate   # Regenerate Cargo.nix

License

MIT - see LICENSE for details.