2025-06-05 14:26:55 -07:00
|
|
|
use crate::{
|
|
|
|
|
collections::{
|
|
|
|
|
Collection,
|
|
|
|
|
MySpoorActivity, MySpoorSession,
|
|
|
|
|
},
|
|
|
|
|
ingestor::Ingestor,
|
|
|
|
|
};
|
2025-05-27 15:12:46 -07:00
|
|
|
|
2025-06-05 14:00:07 -07:00
|
|
|
mod ingestor;
|
|
|
|
|
mod collections;
|
|
|
|
|
|
2025-05-27 15:12:46 -07:00
|
|
|
#[tokio::main]
|
|
|
|
|
async fn main() {
|
|
|
|
|
let subscriber = tracing_subscriber::FmtSubscriber::new();
|
|
|
|
|
let _ = tracing::subscriber::set_global_default(subscriber);
|
|
|
|
|
|
2025-06-05 14:26:55 -07:00
|
|
|
let mut ingestor = Ingestor::new();
|
|
|
|
|
ingestor.add_collection(MySpoorActivity::new());
|
|
|
|
|
ingestor.add_collection(MySpoorSession::new());
|
|
|
|
|
ingestor.start().await;
|
2025-05-27 15:12:46 -07:00
|
|
|
}
|