diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-08 20:54:07 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-08 20:54:07 -0700 |
| commit | 23411fc23dcf82e0ed35a780bfdda2341bedf819 (patch) | |
| tree | e29a32ec6a387c2943d1b52bc3b8b5861600a639 /go.mod | |
| parent | ba29c43bb23de83c7715271e0830cb9f00e9e1c1 (diff) | |
Add flag to enable optional stats HTTP endpoint
re: #29
TODO: add more stat counters
Usage:
```
./mobius-hotline-server -stats-port 5503
```
```
❯ curl -s localhost:5503 | jq .
{
"LoginCount": 0,
"StartTime": "2022-06-08T20:49:10.183921-07:00",
"DownloadCounter": 0,
"UploadCounter": 0
}
```
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions