1
0
Fork 0
forked from alemi/upub
upub/web/src/context.rs

23 lines
404 B
Rust

use std::sync::Arc;
use dashmap::DashMap;
use lazy_static::lazy_static;
lazy_static! {
pub static ref CTX: Context = Context::default();
}
#[derive(Debug, Default, Clone)]
pub struct Context {
pub cache: Arc<Cache>,
pub timelines: Arc<Timelines>,
}
#[derive(Debug, Default)]
pub struct Cache {
pub actors: DashMap<String, serde_json::Value>,
}
#[derive(Debug, Default)]
pub struct Timelines {
}