myc_notifier/models/config.rs
1use super::QueueConfig;
2
3use lettre::SmtpTransport;
4use myc_adapters_shared_lib::models::RedisConfig;
5use redis::Client;
6use shaku::Interface;
7use std::sync::Arc;
8
9pub trait ClientProvider: Interface + Send + Sync {
10 fn get_queue_config(&self) -> Arc<QueueConfig>;
11 fn get_smtp_client(&self) -> Arc<SmtpTransport>;
12 fn get_redis_config(&self) -> Arc<RedisConfig>;
13 fn get_redis_client(&self) -> Arc<Client>;
14}