use crate::define::*;
use anyhow::Result;
use async_trait::async_trait;
#[async_trait]
pub trait ISource: Send + Sync {
async fn fetch(&self, _res: SourceResourceFileRet, _resource_name: &str) -> Result<()> {
anyhow::bail!("No support")
}
async fn subscribe(&self) -> Result<SourceDataReceiver> {
anyhow::bail!("No support")
}
}