diff --git a/src/repository/mod.rs b/src/repository/mod.rs index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b92750cda38ca1432435b21a07d2886fe6a47a93 100644 --- a/src/repository/mod.rs +++ b/src/repository/mod.rs @@ -0,0 +1 @@ +pub mod notification; diff --git a/src/repository/notification.rs b/src/repository/notification.rs new file mode 100644 index 0000000000000000000000000000000000000000..82313241644dfbf7b73be7f227313fb34ec7a3a0 --- /dev/null +++ b/src/repository/notification.rs @@ -0,0 +1,14 @@ +use std::sync::RwLock; + +use lazy_static::lazy_static; + +use crate::model::notification::Notification; + +//Singleton of Database +lazy_static! { + static ref NOTIFICATIONS: RwLock<Vec<Notification>> = RwLock::new(vec![]); +} + +pub struct NotificationRepository; + +impl NotificationRepository {}