switchboard-node-health 0.1.0

Healthcheck service for Switchboard services
Documentation

Switchboard Logo

switchboard-node-health

Healthcheck service for Switchboard services

Crates.io Badge

Discord Badge

Twitter Badge

Install

Run the following Cargo command in your project directory:

cargo add switchboard-node-health

Or add the following line to your Cargo.toml:

[dependencies]
switchboard-node-health = "0.1.0"

Usage

use switchboard_node_health::SwitchboardHealth;

async fn main() {
    let health = SwitchboardHealth::get_or_init().await;

    // When service is healthy
    health.set_is_ready().await;

    // When service is degraded / shutting down
    health.set_is_not_ready().await;
}