Commit graph

78 commits

Author SHA1 Message Date
Leo Balduf
a64e655376 store: ClientStore now using chihaya.PeerID 2016-03-02 21:05:32 -05:00
Jimmy Zelinskie
7be6dcaaa3 http: update config to snake_case 2016-03-02 21:05:32 -05:00
Jimmy Zelinskie
82b4395b11 errors: remove errors package 2016-03-02 21:05:32 -05:00
Jimmy Zelinskie
50e5ff85af config.yaml: camelCase to snake_case 2016-03-02 21:05:32 -05:00
Jimmy Zelinskie
6327938545 memory: fix paren bug 2016-03-02 21:05:32 -05:00
Leo Balduf
50192d45c1 middleware: added IP blacklist/whitelist middlewares 2016-03-02 21:05:31 -05:00
Leo Balduf
1a4ecb133f store: now opening stores 2016-03-02 21:05:31 -05:00
Leo Balduf
1dab3978fb store: added IPStore and memory implementation 2016-03-02 21:05:31 -05:00
Leo Balduf
3b54069a1b various small fixes 2016-03-02 21:05:31 -05:00
Justin Li
b1f186b665 Set IP on the request object 2016-03-02 21:05:31 -05:00
Justin Li
75b4a20e56 Bring in more old behaviour, use types for peer_id and infohash 2016-03-02 21:05:31 -05:00
Justin Li
05b7b955a1 Address minor comments 2016-03-02 21:05:30 -05:00
Jimmy Zelinskie
bd33c0c66b initial middleware refactor 2016-03-02 21:05:30 -05:00
Jimmy Zelinskie
6d5290d85e transition to httprouter 2014-07-01 21:40:29 -04:00
Jimmy Zelinskie
9cb5b82dc7 log->glog; more bencode fixes 2014-06-30 23:21:08 -04:00
Jimmy Zelinskie
834e584f2d fix null ptrs, misuse of bencode 2014-06-30 14:59:31 -04:00
Jimmy Zelinskie
ac45708bfd fix passing of peer slices by reference 2014-06-29 01:23:55 -04:00
Jimmy Zelinskie
3999e35453 Refactor writing peers & IPv6 Compact support. Closes #14. 2014-06-28 20:44:43 -04:00
Jimmy Zelinskie
caba155b5d consistent logging 2014-06-26 17:10:39 -04:00
Jimmy Zelinskie
8775764fb6 deltas are now private only 2014-06-26 14:26:58 -04:00
Jimmy Zelinskie
42693e2a3b docs, signatures; glog for main; config.New() 2014-06-24 03:59:30 -04:00
Jimmy Zelinskie
3bfb3074b4 overhaul everything 2014-06-23 22:47:43 -04:00
Jimmy Zelinskie
cb99fce6c0 server.Prime and server.serveAnnounce test 2014-05-08 11:01:02 -04:00
Jimmy Zelinskie
58586e6718 fix accidental reorder 2014-05-08 06:49:16 -04:00
Jimmy Zelinskie
cf95b2d94b improve comments and logging 2014-05-08 06:48:32 -04:00
Jimmy Zelinskie
0fd90b86d3 announce.go; fmt nitpicks 2014-05-08 01:09:02 -04:00
Jimmy Zelinskie
7a05ab6d64 *_handler.go -> serve_*.go 2014-05-07 05:27:09 -04:00
Jimmy Zelinskie
4a8d756f5a announce type; renames; docs 2014-05-07 05:19:36 -04:00
Jimmy Zelinskie
b32eaebcd6 first pass with linter 2014-05-01 00:30:46 -04:00
Jimmy Zelinskie
f0bed27b6d Server.BackendCon renamed Server.BackendConn 2014-04-20 02:25:21 -04:00
Jimmy Zelinskie
e80b17b2ad initial delta support 2014-02-22 23:47:11 -05:00
Justin Li
e8e692cbf6 Clean up tests a little 2013-12-13 11:48:47 -05:00
Justin Li
140a738162 Fix edge cases for peer ID parsing
Fixes #27
2013-12-13 11:19:22 -05:00
Justin Li
181f241f79 Fix returning more than the requested number of peers, and don't return
a user's peers to themselves
2013-12-05 20:38:13 -05:00
Justin Li
4406eab97a Refactor determining the remote IP 2013-12-05 20:38:13 -05:00
Jimmy Zelinskie
2b7d5b5bf0 simplify routing, rm addremove.go
will implement a full rest API later
2013-12-05 20:24:54 -05:00
Jimmy Zelinskie
76f03e209f rm driver deps 2013-12-02 05:00:28 -05:00
Justin Li
986675cc4d Fix stats test and stop spamming people 2013-11-30 23:13:30 -05:00
Justin Li
a735fed7d9 Use mock driver for stats test 2013-11-30 23:08:31 -05:00
Justin Li
93af4912c4 Move packages to chihaya org 2013-11-30 22:39:02 -05:00
Jimmy Zelinskie
6549f49e26 go fmt [ci skip] 2013-11-24 00:49:20 -05:00
Jimmy Zelinskie
9382ac482e removed all references to "transaction" 2013-11-23 23:48:38 -05:00
Jimmy Zelinskie
31e618c8d9 Global r.Close = true 2013-11-23 18:33:35 -05:00
Jimmy Zelinskie
86f8199bef Fix Content-Type Header not improperly being set for stats 2013-11-23 18:04:23 -05:00
cpb8010
493d40da3d Added ParseQuery tests and benchmarks 2013-11-09 03:43:37 -05:00
cpb8010
a65755a79b Parsing peer_id before whitelist check 2013-11-05 00:31:20 -05:00
Jimmy Zelinskie
2c7fc05c97 removed waitgroup/pubchannel; added stoppablelistener 2013-10-22 19:07:39 -04:00
Jimmy Zelinskie
d30c35f1d7 web package renamed backend 2013-10-21 03:29:35 -04:00
Jimmy Zelinskie
2cd7f0d22f package shuffling: models -> storage, old storage -> web 2013-10-04 04:19:43 -04:00
Jimmy Zelinskie
cf53f9554c initial storage reorganization 2013-10-03 22:10:46 -04:00