1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#![allow(clippy::module_inception)] mod server; pub mod cli; pub mod client; pub mod config; pub mod core; pub mod error; pub mod protocol; pub use crate::error::KvsdError; pub type Result<T, E = crate::error::KvsdError> = std::result::Result<T, E>; pub use protocol::{Key, Value}; pub(crate) mod common { pub(crate) type Result<T, E = crate::error::internal::Error> = std::result::Result<T, E>; pub(crate) type Error = crate::error::internal::Error; pub(crate) type ErrorKind = crate::error::internal::ErrorKind; pub use crate::error::KvsdError; pub(crate) type Time = chrono::DateTime<chrono::Utc>; pub use tracing::{debug, error, info, trace, warn}; }