Initial Commit
This commit is contained in:
15
backend/src/collector.rs
Normal file
15
backend/src/collector.rs
Normal file
@ -0,0 +1,15 @@
|
||||
mod markdown_web;
|
||||
|
||||
pub use markdown_web::MarkdownWeb;
|
||||
|
||||
use serde::Deserialize;
|
||||
|
||||
#[async_trait::async_trait]
|
||||
pub trait Collector {
|
||||
async fn collect(&mut self) -> anyhow::Result<String>;
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct CollectorConfig {
|
||||
pub markdown_web_links: Vec<String>,
|
||||
}
|
||||
Reference in New Issue
Block a user