Commit graph

710 commits

Author SHA1 Message Date
Justin Li
1236a5ee5b Allow purge interval to be set, and fix variable naming 2014-07-16 13:54:10 -04:00
Justin Li
84e1c169c0 Add tests for torrent purging 2014-07-16 13:53:42 -04:00
Justin Li
ea72e9e10c Initial torrent inactivity purging 2014-07-16 13:24:44 -04:00
Justin Li
7636608725 Remove Active from the Torrent model and keep LastAction updated 2014-07-16 13:05:13 -04:00
Justin Li
2a4d4c5aef Simpler interface 2014-07-16 13:03:59 -04:00
Justin Li
3ceaf72034 Separate Conn and PrivateConn tracker interfaces 2014-07-16 12:33:16 -04:00
Justin Li
8ef67ff99f Remove unnecessary imports in tests 2014-07-16 12:25:40 -04:00
Justin Li
f3f58c024c Use glog levelled logging to decrease announce overhead 2014-07-16 11:52:59 -04:00
Justin Li
df5ad919f9 Use a constant for the JSON Content-Type 2014-07-16 11:52:25 -04:00
Justin Li
d39a40c4fe Clearer field names for the Tracker struct 2014-07-16 11:29:40 -04:00
Justin Li
2972aae231 More idiomatic flag descriptions 2014-07-16 09:43:28 -04:00
Jimmy Zelinskie
ab3d49da9d pedantic breakline! 2014-07-16 06:01:09 -04:00
Jimmy Zelinskie
251b5c5f18 API sets json content-type 2014-07-16 06:00:20 -04:00
Jimmy Zelinskie
c762946ed7 unescape infohash in API 2014-07-16 05:46:33 -04:00
Jimmy Zelinskie
23edba6dc6 check route added 2014-07-16 05:44:26 -04:00
Jimmy Zelinskie
65bd11f636 s/setupRoutes/NewRouter 2014-07-16 04:40:51 -04:00
Jimmy Zelinskie
a614f42a94 docs for http package 2014-07-16 04:40:17 -04:00
Jimmy Zelinskie
bc9d3d209d maxprocs exposed by flag 2014-07-16 00:01:10 -04:00
Justin Li
6623098853 Separate main() to allow for external inclusion 2014-07-15 23:06:07 -04:00
Justin Li
fbcf762a42 Rename again 2014-07-15 22:58:38 -04:00
Justin Li
660fbef778 Rename private_announce_test to a shorter name 2014-07-15 22:54:59 -04:00
Justin Li
c745c791a5 More panicky type assertions 2014-07-15 22:48:04 -04:00
Justin Li
5ccb42a0c7 Make private announce test more complete and fix brittle peer order 2014-07-15 22:44:20 -04:00
Justin Li
9adf9a114c More test cleanup 2014-07-15 22:19:44 -04:00
Justin Li
71cd410116 Less duplication 2014-07-15 21:35:33 -04:00
Justin Li
198582553a Use dummy-er data 2014-07-15 21:21:42 -04:00
Justin Li
f20fea7db0 Remove unnecessary test indirection 2014-07-15 21:14:20 -04:00
Justin Li
586b6852de Refactor more, add scrape tests 2014-07-15 21:07:33 -04:00
Justin Li
bec70e9759 Refactor peer dict creation in the announce test 2014-07-15 20:50:33 -04:00
Justin Li
c36974d515 Use bencode.List over []interface{} 2014-07-15 20:45:18 -04:00
Justin Li
019c87182e Add public announce tests and refactor 2014-07-15 20:38:17 -04:00
Justin Li
850cedf7ec Use the bencode package to avoid hardcoded test strings 2014-07-15 19:35:18 -04:00
Jimmy Zelinskie
d2ba9fb9f7 repurpose drivers from mock to no-op and memory 2014-07-15 00:22:04 -04:00
Jimmy Zelinskie
b321d1f0fa update config docs [ci-skip] 2014-07-14 23:13:35 -04:00
Jimmy Zelinskie
6a5144fb4e Adds an error for missing driver params 2014-07-14 20:36:49 -04:00
Jimmy Zelinskie
fc0b1b008d Flush log IO before exiting 2014-07-13 21:27:20 -04:00
Jimmy Zelinskie
8ddbf32002 rm last printf in http 2014-07-12 01:52:27 -04:00
Jimmy Zelinskie
292c15e519 responses are bencode.Dict; Closes #29. 2014-07-11 22:15:51 -04:00
Jimmy Zelinskie
dfc215115a fix reversed cases 2014-07-11 20:44:28 -04:00
Jimmy Zelinskie
0f734a6069 when public, create non-existing torrents 2014-07-11 20:39:55 -04:00
Jimmy Zelinskie
3cc4679454 default to addr 127.0.0.1:6881 2014-07-09 21:26:44 -04:00
Jimmy Zelinskie
fb528b1fc3 NewAnnounce more verbose error handling 2014-07-09 18:29:05 -04:00
Jimmy Zelinskie
e2af935b83 disambiguate routing 2014-07-09 01:34:34 -04:00
Jimmy Zelinskie
afb2376286 api routes; status codes fixed 2014-07-09 00:53:57 -04:00
Jimmy Zelinskie
6ee6c0bef4 API: putUser & putTorrent impl 2014-07-08 16:55:24 -04:00
Jimmy Zelinskie
f656133a6f Tracker.Conn API made more RESTful 2014-07-08 05:58:00 -04:00
Jimmy Zelinskie
99ac8f77c8 Tracker.Conn interface update to better fit API 2014-07-07 22:44:27 -04:00
Jimmy Zelinskie
9e94643379 implemented some API funcs, added whitelist API 2014-07-07 22:23:01 -04:00
Jimmy Zelinskie
d8bcbd1dde flesh out api 2014-07-07 21:59:41 -04:00
Justin Li
7351d3e79a Add missing quotation mark in struct tag 2014-07-07 00:09:20 -04:00