server-watchdog 0.1.2

A server monitoring and remote control tool via messenger.
Documentation
1
2
3
4
5
6
7
8
9
use std::error::Error;
use async_trait::async_trait;
use crate::domain::config::ServerConfig;

#[async_trait]
pub trait ServerConfigUseCase {
    async fn add_server(&self, server_config: ServerConfig) -> Result<(), Box<dyn Error + Send + Sync>>;
    async fn list_server(&self) -> Result<Vec<ServerConfig>, Box<dyn Error + Send + Sync>>;
}