2025-09-26 15:05:45 +07:00
|
|
|
use std::sync::Arc;
|
2025-04-06 13:25:44 +07:00
|
|
|
|
2025-02-07 22:26:32 +07:00
|
|
|
pub mod argon;
|
2025-02-03 21:53:42 +07:00
|
|
|
pub mod axum;
|
2025-03-13 23:40:16 +07:00
|
|
|
pub mod enviroment;
|
2025-02-07 22:26:32 +07:00
|
|
|
pub mod jsonwebtoken;
|
2025-02-16 01:09:55 +07:00
|
|
|
pub mod lettre;
|
2025-08-14 13:16:39 +07:00
|
|
|
pub mod minio;
|
2025-09-26 15:05:45 +07:00
|
|
|
pub mod services;
|
2025-02-25 02:00:19 +07:00
|
|
|
pub mod surrealdb;
|
2025-02-07 22:26:32 +07:00
|
|
|
|
|
|
|
|
pub use argon::*;
|
|
|
|
|
pub use axum::*;
|
2025-03-13 23:40:16 +07:00
|
|
|
pub use enviroment::*;
|
2025-04-06 13:25:44 +07:00
|
|
|
pub use imphnen_entities::*;
|
2025-02-07 22:26:32 +07:00
|
|
|
pub use jsonwebtoken::*;
|
2025-02-16 01:09:55 +07:00
|
|
|
pub use lettre::*;
|
2025-08-14 13:16:39 +07:00
|
|
|
pub use minio::*;
|
2025-09-26 15:05:45 +07:00
|
|
|
pub use services::*;
|
2025-02-25 02:00:19 +07:00
|
|
|
pub use surrealdb::*;
|
2025-09-26 15:05:45 +07:00
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
|
pub struct AppState {
|
|
|
|
|
pub surrealdb_ws: SurrealWsClient,
|
|
|
|
|
pub surrealdb_mem: SurrealMemClient,
|
|
|
|
|
pub user_lookup_service: Arc<dyn UserLookupService>,
|
|
|
|
|
pub auth_repository: Arc<dyn AuthRepositoryTrait>,
|
|
|
|
|
}
|