Commit graph

1030 commits

Author SHA1 Message Date
Leo Balduf
38856e82be store: added peer parameters to AnnouncePeers 2016-04-12 12:15:38 -04:00
Jimmy Zelinskie
d453bf7a75 Merge pull request #164 from mrd0ll4r/http-smallfix
http: fixed bencoding, compact, added log
2016-04-11 22:21:19 -04:00
Leo Balduf
0c02ac9980 general: lint clean, vet clean 2016-04-11 21:26:26 -04:00
Leo Balduf
6c2ab5170d http: fixed bencoding, compact, added log 2016-04-07 22:31:38 -04:00
Leo Balduf
f17ad3e24d middleware: improved infohash tests 2016-04-07 10:23:57 -04:00
Leo Balduf
ed83aef2c1 servers: fixed starting/stopping of servers 2016-04-07 10:22:30 -04:00
Jimmy Zelinskie
8a6618f947 Merge pull request #159 from joshdekock/middleware-refactor-string
Make client middleware use StringStore and remove ClientStore
2016-04-06 23:43:14 -04:00
Josh de Kock
d4099a5abf middleware/infohash: move prefix to within package
Let middlewares own their prefixes, makes it simpler
to manage for us.
2016-04-06 23:43:01 +01:00
Josh de Kock
d139335111 middleware/client: be more specific with error messages
contributes to #160
2016-04-06 23:43:01 +01:00
Josh de Kock
20cd7c07ce middleware/client: make client middleware use StringStore and remove ClientStore
Fixes #158
2016-04-06 23:43:01 +01:00
Jimmy Zelinskie
922f955796 Merge pull request #152 from mrd0ll4r/interval-middleware
middleware: added varinterval
2016-04-06 12:12:58 -04:00
Leo Balduf
0607841b3b middleware: added varinterval 2016-04-06 11:33:14 -04:00
Jimmy Zelinskie
35df7a29bc main: organize imports by server, middleware 2016-04-04 00:27:30 -04:00
Jimmy Zelinskie
835e1744e1 Merge pull request #157 from jzelinskie/simplify-interfaces
more general interfaces
2016-04-04 00:21:50 -04:00
Jimmy Zelinskie
8d1244d1c2 pkg/bencode,server/http: more general interfaces
Fixes #156.
2016-04-03 23:05:00 -04:00
Justin Li
07d79b2d56 Merge pull request #155 from mrd0ll4r/middleware-smallfix
hotfix: fixed bencode
2016-04-02 21:56:42 -04:00
Leo Balduf
8f587df9c7 hotfix: fixed bencode 2016-04-02 20:55:56 -04:00
Jimmy Zelinskie
d5c00c24b1 Merge pull request #153 from mrd0ll4r/middleware-smallfix
hotfix: initialized scrape map
2016-04-02 20:31:40 -04:00
Jimmy Zelinskie
52f6fb664e Merge pull request #154 from joshdekock/middleware-refactor
Hotfix: middleware/response: make godoc string <80 chars
2016-04-02 20:29:39 -04:00
Josh de Kock
6197928253 middleware/response: make godoc string <80 chars 2016-04-03 01:25:22 +01:00
Leo Balduf
9c1168746a hotfix: initialized scrape map 2016-04-02 20:23:42 -04:00
Jimmy Zelinskie
cd979c61c9 README: reorganize and add warnings 2016-04-02 19:35:04 -04:00
Jimmy Zelinskie
c2ab84bd1e Merge pull request #150 from joshdekock/middleware-refactor-announce
middleware: add basic response middleware
2016-04-02 19:31:21 -04:00
Jimmy Zelinskie
ef87fab901 Merge pull request #142 from mrd0ll4r/infohash-middleware
middleware: added infohash middleware
2016-04-02 19:30:50 -04:00
Leo Balduf
52483407cc middleware: added infohash middleware 2016-04-02 18:47:51 -04:00
Josh de Kock
98afbe67da middleware: add basic response middleware
This commit adds a basic response middleware for both announces, and scrapes.

Completes one of the tasks in #145
2016-04-02 23:46:28 +01:00
Leo Balduf
c6a3830c4b tracker: made (Scrape|Announce)Chain exported 2016-04-02 18:45:23 -04:00
Jimmy Zelinskie
83ffc0425e Merge pull request #148 from mrd0ll4r/deniability-middleware
Deniability middleware, some util packages
2016-04-02 18:02:45 -04:00
Leo Balduf
6440f91a8e middleware: added deniability 2016-04-02 17:19:33 -04:00
Leo Balduf
986aa41d65 pkg: added random string, peer 2016-04-02 17:19:29 -04:00
Jimmy Zelinskie
f0a5d78036 Merge pull request #147 from joshdekock/middleware-refactor-peer-seed-leech-info
Add peer/seed info helper functions, and tests
2016-04-02 17:06:45 -04:00
Josh de Kock
a9d3c2e071 store/peer_store: Add tests & functions for getting info about peers
This commit adds four functions: GetSeeders, GetLeechers,
NumSeeders, and NumLeechers to the store/peer_store API. The
first two functions are for getting a list of all the
seeders/leechers by an info hash, the latter two are helper
functions which use the Get functions, combine the ipv4, and
ipv4, and then len() them. It also adds some minimal tests for
memory/peer_store.
2016-04-02 21:49:08 +01:00
Josh de Kock
36e533ba02 chihaya: Add Equal function for Peer & add tests 2016-04-01 13:21:19 +01:00
Jimmy Zelinskie
e9c481e500 Merge pull request #143 from joshdekock/middleware-refactor-request-fix
http: stopped throwing error on invalid event
2016-03-31 10:11:19 -04:00
Josh de Kock
816e3aa3de CONTRIBUTORS: add myself to the contributors list 2016-03-31 02:30:34 +01:00
Jimmy Zelinskie
e2da9cdc3e Merge pull request #146 from mrd0ll4r/client-mw-smallfix
middleware: fixed client middleware package
2016-03-30 16:07:51 -04:00
Leo Balduf
3a1b321528 middleware: fixed client middleware package 2016-03-30 15:29:04 -04:00
Josh de Kock
01abcad893 http/request: check if query.ErrKeyNotFound for event 2016-03-30 12:50:54 +01:00
Jimmy Zelinskie
a14d108202 readme: add CONTRIBUTING.md 2016-03-30 01:21:53 -04:00
Jimmy Zelinskie
6461e28b0f readme: clean up usecase wording 2016-03-30 00:45:59 -04:00
Jimmy Zelinskie
ce49b2e35e Merge branch 'middleware-refactor' of github.com:chihaya/chihaya into middleware-refactor 2016-03-30 00:39:10 -04:00
Jimmy Zelinskie
3cf868ce56 README: add prod use cases 2016-03-30 00:38:57 -04:00
Jimmy Zelinskie
b00a46f970 Merge pull request #144 from jzelinskie/fix-coveralls
travis: remove coveralls
2016-03-30 00:24:49 -04:00
Jimmy Zelinskie
b61aa4ffd8 travis: remove coveralls
At the moment, this is just too much of a hack getting coverage for all
packages.
2016-03-30 00:20:51 -04:00
Josh de Kock
978c6a36e7 http: stopped throwing error on invalid event
Event is an optional key, and if it's invalid or non-existent then it can just be assumed as 'none'
2016-03-29 23:18:58 +01:00
Jimmy Zelinskie
0652aefcb5 Merge pull request #139 from mrd0ll4r/middleware-config-smallfix
tracker: added a way for middleware constructors to fail
2016-03-24 12:15:49 -04:00
Leo Balduf
230e0573c0 tracker: added a way for middleware constructors to fail 2016-03-24 15:29:57 +01:00
Jimmy Zelinskie
1874584eae Merge pull request #136 from mrd0ll4r/middleware-config
middleware: made middleware configurable
2016-03-23 12:09:07 -04:00
Leo Balduf
2974519e5c middleware: made middleware configurable 2016-03-16 18:20:59 +01:00
Jimmy Zelinskie
05a34c6059 Merge pull request #138 from mrd0ll4r/config-normalize
Config normalize
2016-03-11 17:12:10 -05:00