Initial Commit

This commit is contained in:
2022-07-29 01:36:18 +02:00
commit 8da2472488
32 changed files with 4400 additions and 0 deletions

15
backend/src/collector.rs Normal file
View 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>,
}