Commit Graph

7 Commits

Author SHA1 Message Date
cws 1d290c287e stats: fix hours bucket; standardize date format 2017-06-06 06:30:12 -04:00
cws b998347f33 stats: forgot to close the file in web serving 2017-06-06 05:57:33 -04:00
cws 30789669b7 stats: Add a dumb URL for getting all stats from the db 2017-06-05 21:45:34 -04:00
cws 4213243744 stats: Add a day categorization above all others 2017-06-05 21:20:08 -04:00
cws de19f6a4e9 stat: change encoding to JSON 2017-06-05 21:03:23 -04:00
cws e1e58591ec stats: Add tests and clean a few things up
* Make statFromDB return 0 if no stats are in the DB instead of error
* Convert tests to use the assert library
* Add tests for actual messages
2017-06-05 20:54:19 -04:00
cws 95616e0fb8 stats: WIP demo of stats
* Added a plugin for stats
* Using BoltDB for ease of not screwing with SQL
** Perhaps everything should be Bolt...
* Should be relatively easy to add new stat counters:
** Create a function that makes the stat{} struct
** Add it to the list of active counters
* Should be relatively easy to add a views page later
2017-06-05 20:52:35 -04:00