pub trait ConfigSource: Send + Sync {
// Required method
fn fetch(&self) -> Result<(String, ConfigFormat), SynapticError>;
}Expand description
Configuration source abstraction.
Future implementations (Apollo, Nacos, etcd) can implement this trait to provide configuration from remote sources.
Required Methods§
Sourcefn fetch(&self) -> Result<(String, ConfigFormat), SynapticError>
fn fetch(&self) -> Result<(String, ConfigFormat), SynapticError>
Fetch the current configuration content and its format.