mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-04-01 00:45:27 +00:00
implement web-api server with stats
This commit is contained in:
parent
ddd7120f61
commit
126185480f
7 changed files with 952 additions and 44 deletions
9
src/stats.rs
Normal file
9
src/stats.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
use rocket::serde::Serialize;
|
||||
|
||||
#[derive(Debug, Default, Clone, Copy, Serialize)]
|
||||
#[serde(crate = "rocket::serde")]
|
||||
pub struct Stats {
|
||||
pub entries: usize,
|
||||
pub blocked: usize,
|
||||
pub request: usize,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue