1
2
3
4
5
6
7
8
9
10
11
12
13
14
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")
    }
}