gateway_common/config/
mod.rs

1use std::sync::Arc;
2
3pub mod toml;
4pub mod yaml;
5
6pub trait HotConfig {
7    fn build_hot_config(
8        &mut self,
9        ident: Self,
10        listener: tokio::sync::mpsc::Receiver<nacos_sdk::api::config::ConfigResponse>,
11    ) -> Result<(), crate::error::BoxError>;
12    
13    #[allow(async_fn_in_trait)]
14    async fn get_hot_config(&self) -> Option<Arc<Self>>;
15}