server_watchdog/application/config/server.rs
1use std::error::Error;
2use async_trait::async_trait;
3use crate::domain::config::ServerConfig;
4
5#[async_trait]
6pub trait ServerConfigUseCase {
7 async fn add_server(&self, server_config: ServerConfig) -> Result<(), Box<dyn Error + Send + Sync>>;
8 async fn list_server(&self) -> Result<Vec<ServerConfig>, Box<dyn Error + Send + Sync>>;
9}