aboutsummaryrefslogtreecommitdiff
path: root/aero-collections/src/calendar
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-03-27 10:33:46 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-03-27 10:33:46 +0100
commit0b57200eeb6780e843c5f798bdc53781eb83d51f (patch)
tree9db7c91d04d543b8f2683cf53615b1a026bb8a0b /aero-collections/src/calendar
parentbc0f897803cbb9b7537010e9d4714a2a0b2a6872 (diff)
downloadaerogramme-0b57200eeb6780e843c5f798bdc53781eb83d51f.tar.gz
aerogramme-0b57200eeb6780e843c5f798bdc53781eb83d51f.zip
Dav DAG wip
Diffstat (limited to 'aero-collections/src/calendar')
-rw-r--r--aero-collections/src/calendar/mod.rs16
1 files changed, 15 insertions, 1 deletions
diff --git a/aero-collections/src/calendar/mod.rs b/aero-collections/src/calendar/mod.rs
index d2217b8..6537a4e 100644
--- a/aero-collections/src/calendar/mod.rs
+++ b/aero-collections/src/calendar/mod.rs
@@ -1,13 +1,19 @@
pub mod namespace;
use anyhow::Result;
+use tokio::sync::RwLock;
+use aero_bayou::Bayou;
use aero_user::login::Credentials;
+use aero_user::cryptoblob::{self, gen_key, open_deserialize, seal_serialize, Key};
+use aero_user::storage::{self, BlobRef, BlobVal, RowRef, RowVal, Selector, Store};
use crate::unique_ident::*;
+use crate::davdag::DavDag;
pub struct Calendar {
- a: u64,
+ pub(super) id: UniqueIdent,
+ internal: RwLock<CalendarInternal>,
}
impl Calendar {
@@ -18,3 +24,11 @@ impl Calendar {
todo!();
}
}
+
+struct CalendarInternal {
+ id: UniqueIdent,
+ cal_path: String,
+ encryption_key: Key,
+ storage: Store,
+ uid_index: Bayou<DavDag>,
+}