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::ClientConfig;

#[async_trait]
pub trait ClientConfigUseCase {
    async fn add_client(&self, client_config: ClientConfig) -> Result<(), Box<dyn Error + Send + Sync>>;
    async fn list_client(&self) -> Result<Vec<ClientConfig>, Box<dyn Error + Send + Sync>>;
}