mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-10 18:02:17 +02:00
14 lines
420 B
Rust
14 lines
420 B
Rust
use std::collections::HashMap;
|
|
use std::sync::Arc;
|
|
use async_std::sync::{Mutex};
|
|
use crate::api::model::download::DownloadQueue;
|
|
use crate::api::model::shared_stream::SharedStream;
|
|
use crate::model::config::{Config};
|
|
|
|
pub struct AppState {
|
|
pub config: Arc<Config>,
|
|
pub downloads: Arc<DownloadQueue>,
|
|
pub shared_streams: Arc<Mutex<HashMap<String, SharedStream>>>,
|
|
pub http_client: Arc<reqwest::Client>,
|
|
}
|