diff --git a/src/server/actors/mod.rs b/src/server/actors/mod.rs new file mode 100644 index 00000000..c426b23e --- /dev/null +++ b/src/server/actors/mod.rs @@ -0,0 +1 @@ +pub mod repo; diff --git a/src/server/actors/repo.rs b/src/server/actors/repo.rs new file mode 100644 index 00000000..abc9732c --- /dev/null +++ b/src/server/actors/repo.rs @@ -0,0 +1,23 @@ +use actix::prelude::*; +use tracing::info; + +use crate::server::config::RepoDetails; + +pub struct RepoActor { + pub defailt: RepoDetails, +} +impl Actor for RepoActor { + type Context = Context; +} +#[derive(Message)] +#[rtype(result = "()")] +pub struct StartRepo; +impl Handler for RepoActor { + type Result = (); + fn handle(&mut self, _msg: StartRepo, _ctx: &mut Self::Context) -> Self::Result { + info!( + "Starting Repo: {} - {}", + self.defailt.name.0, self.defailt.path.0 + ); + } +} diff --git a/src/server/mod.rs b/src/server/mod.rs index 9e1a0ff1..9e8054dc 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -1,3 +1,4 @@ +mod actors; mod config; use std::path::PathBuf;