aboutsummaryrefslogtreecommitdiffstats
path: root/crates/api-base/src/health/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/api-base/src/health/mod.rs')
-rw-r--r--crates/api-base/src/health/mod.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/crates/api-base/src/health/mod.rs b/crates/api-base/src/health/mod.rs
deleted file mode 100644
index a84dc85..0000000
--- a/crates/api-base/src/health/mod.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-#[cfg(feature = "utoipa")]
-mod apidoc;
-
-#[cfg(feature = "utoipa")]
-pub use apidoc::*;
-
-#[derive(Default)]
-pub struct BaseService;
-
-impl HealthDriver for BaseService {}
-
-pub trait HealthDriver: Send + Sync {
- fn health(&self, app: &str, version: &str) -> String {
- format!("{app} v{version} is live")
- }
-}
-
-#[cfg(test)]
-mod tests {
- use crate::health::{BaseService, HealthDriver};
-
- #[test]
- fn health() {
- let app = BaseService.health(env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"));
- assert!(app.contains("is live"));
- }
-}