darpan 0.2.5

Linux developer service monitoring utility with auto-detection, real-time health checks, and interactive TUI for databases, APIs, Docker containers, and more
Documentation
1
2
3
4
5
6
7
8
use crate::models::{HealthResult, Service};
use async_trait::async_trait;

#[async_trait]
pub trait HealthCheckerTrait: Send + Sync {
    async fn check(&self, service: &Service) -> HealthResult;
    fn supports(&self, service: &Service) -> bool;
}