Add connected controllers hashmap for controller-ws

This commit is contained in:
Tobias Reisinger 2023-11-28 20:20:12 +01:00
commit 6536ff0792
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
17 changed files with 267 additions and 649 deletions

View file

@ -1,5 +1,12 @@
mod controller_uid;
mod schedule_uid;
use crate::models::Controller;
pub use controller_uid::ControllerUid;
pub use schedule_uid::ScheduleUid;
use std::collections::HashMap;
use std::sync::{Arc, Mutex};
pub type ConnectedControllersType = Arc<Mutex<HashMap<ControllerUid, Controller>>>;