pubky-homeserver 0.5.1

Pubky core's homeserver.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::persistence::{files::FileService, lmdb::LmDB};

#[derive(Clone, Debug)]
pub(crate) struct AppState {
    pub(crate) db: LmDB,
    pub(crate) file_service: FileService,
}

impl AppState {
    pub fn new(db: LmDB, file_service: FileService) -> Self {
        Self { db, file_service }
    }
}