Skip to main content

server_watchdog/application/config/
client.rs

1use std::error::Error;
2use async_trait::async_trait;
3use crate::domain::config::ClientConfig;
4
5#[async_trait]
6pub trait ClientConfigUseCase {
7    async fn add_client(&self, client_config: ClientConfig) -> Result<(), Box<dyn Error + Send + Sync>>;
8    async fn list_client(&self) -> Result<Vec<ClientConfig>, Box<dyn Error + Send + Sync>>;
9}