Jimmy Zelinskie
9add47ed07
pull API server out of http
...
Fixes #87 .
2015-10-11 19:23:30 -04:00
Jimmy Zelinskie
ac2fcade1e
tracker: record announce/scrape stats in handlers
...
This deduplicates code tracking the stats code tracking announces and
scrapes for each protocol. The down side is that it isn't aware of any
failures writing responses, but it was already being called before the
write to a response for HTTP.
2015-02-26 09:03:52 -05:00
Justin Li
7512f50731
udp: Add basic UDP tests
2015-02-21 14:35:21 -05:00
Justin Li
e3aff35532
models: Use a uint16 for port numbers
2015-02-20 02:06:44 -05:00
Justin Li
d9a7611eee
http: Unexport announce/scrape creation functions
2015-02-20 01:36:49 -05:00
Jimmy Zelinskie
14ead047ab
http: improve clarity of /check
2015-02-08 18:05:30 -05:00
Jimmy Zelinskie
dfbf4a6fad
http: ping backend on healthcheck
...
Fixes #37 .
2015-02-08 17:15:27 -05:00
Jimmy Zelinskie
443fb4b70d
http: add GET route for clients
2015-02-08 02:20:48 -05:00
Justin Li
87c68f1973
2015 ✨
2015-01-01 12:02:25 -05:00
Cooper Lees
17a6fefc3b
Go routine stat
2014-09-25 11:47:50 -07:00
Jimmy Zelinskie
1d9b2bc322
First step towards removing Tracker Driver.
...
This feature isn't worth maintaining and if anyone needs to scale beyond
memory on a single box, we can evaluate it then.
2014-08-13 17:45:34 -04:00
Justin Li
3b84fb3f98
Better logging
2014-07-25 03:39:02 -04:00
Justin Li
818bef28d7
More refactoring of error handling
2014-07-25 03:05:43 -04:00
Justin Li
683e90631a
Add pretty stats param and refactor error handling
2014-07-25 03:01:26 -04:00
Justin Li
ab43e6bd97
Add crazy struct flattening code
2014-07-24 20:28:07 -04:00
Jimmy Zelinskie
788b349dd7
ClientError base type struct -> string
2014-07-24 19:34:17 -04:00
Justin Li
b08195aeef
Rename RequestsBlocked to ClientErrors and remove special cases from tracker code
2014-07-24 18:01:26 -04:00
Justin Li
02f67b4259
Create a ClientError type to distinguish between failure modes
2014-07-24 17:57:44 -04:00
Justin Li
1a79bdeb6b
Add RequestsBlocked stat counter
2014-07-24 17:48:03 -04:00
Justin Li
2a400a0419
Handle ErrBadRequest after HandleAnnounce is called
2014-07-23 01:34:40 -04:00
Justin Li
84195deb58
Correctly handle ErrBadRequest in the announce handler
2014-07-23 01:26:47 -04:00
Justin Li
6396990e52
Move errors to tracker/models
2014-07-23 00:37:30 -04:00
Justin Li
8625c4b3c4
Update the easter egg
2014-07-23 00:12:29 -04:00
Jimmy Zelinskie
4514705363
re-add /check as per discussion
2014-07-22 01:19:09 -04:00
Jimmy Zelinskie
fa191de6d3
serve stats via /check
2014-07-22 01:12:41 -04:00
Jimmy Zelinskie
2c8894fbda
rollout more stats
2014-07-21 20:24:51 -04:00
Justin Li
199496bfa6
Move backend to root level, combine announce tests, rename files
2014-07-17 01:26:34 -04:00