MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / AppState

Class AppState

opensuse-proxy-cache/src/main.rs:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61use uuid::Uuid;
62
63struct AppState {
64 cache: Cache,
65 client: reqwest::Client,
66 // oauth: Option<auth::BasicClient>,
67 prefetch_tx: Sender<PrefetchReq>,
68 boot_origin: Url,
69 geoip_db: maxminddb::Reader<&'static [u8; 9853267]>,
70 allowed_countries: BTreeSet<String>,
71 daily_quota: Option<Mutex<Quota>>,
72}
73
74struct ClientRecord {
75 used: usize,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected