aboutsummaryrefslogtreecommitdiff
path: root/hotline/stats.go
AgeCommit message (Collapse)Author
2025-07-04Add comprehensive test coverage for Stats and fix decrement edge caseJeff Halter
- Add complete test suite for Stats with 100% coverage - Fix Decrement method to prevent negative values - Test all methods: Increment, Decrement, Set, Get, Values - Cover edge cases including zero decrements and mixed operations
2024-07-09Extensive refactor and clean upJeff Halter
2024-06-24Refactoring, cleanup, test backfillingJeff Halter
2022-07-04Add basic stat countersJeff Halter
2022-06-20Add initial support for resource and info forksJeff Halter
2022-06-08Add flag to enable optional stats HTTP endpointJeff Halter
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 } ```
2021-07-28Move code to hotline dirJeff Halter