mirror of
https://github.com/YGGverse/nexy.git
synced 2026-04-01 17:55:28 +00:00
implement CLF option
This commit is contained in:
parent
50a0a567a8
commit
ad9bb1ae49
7 changed files with 72 additions and 16 deletions
|
|
@ -1,12 +1,14 @@
|
|||
mod debug;
|
||||
mod log;
|
||||
mod storage;
|
||||
mod template;
|
||||
|
||||
use {debug::Debug, storage::Storage, template::Template};
|
||||
use {debug::Debug, log::Log, storage::Storage, template::Template};
|
||||
|
||||
/// Single container for the current session
|
||||
/// Shared, multi-thread features for the current server session
|
||||
pub struct Session {
|
||||
pub debug: Debug,
|
||||
pub log: Log,
|
||||
pub storage: Storage,
|
||||
pub template: Template,
|
||||
}
|
||||
|
|
@ -15,6 +17,7 @@ impl Session {
|
|||
pub fn init(config: &crate::config::Config) -> anyhow::Result<Self> {
|
||||
Ok(Self {
|
||||
debug: Debug::init(config)?,
|
||||
log: Log::init(config)?,
|
||||
storage: Storage::init(config)?,
|
||||
template: Template::init(config)?,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue