Leo Balduf
9abf72e46a
store: add README
2016-06-19 17:02:49 -04:00
Leo Balduf
31581bc1c3
store: add PeerStore benchmarks
2016-06-19 17:02:49 -04:00
Leo Balduf
69e9401838
store: add PeerStore tests
2016-06-19 17:02:49 -04:00
Leo Balduf
5fae38399b
store: add IPStore benchmarks
2016-06-19 17:02:49 -04:00
Leo Balduf
a4d808dea9
store: add IPStore tests
2016-06-19 17:02:49 -04:00
Leo Balduf
c191e04ee7
store: add StringStore benchmarks
2016-06-19 17:02:49 -04:00
Leo Balduf
f4101f83e0
store: use stopper, extraxt StringStore tests
2016-06-19 17:02:46 -04:00
Jimmy Zelinskie
1597d1ffd3
Merge pull request #165 from mrd0ll4r/add-peer
...
middleware: added peer store updates middleware (swarm)
2016-05-17 03:31:13 -04:00
Leo Balduf
aaf9978df3
middleware: add swarm interaction
2016-05-17 00:49:16 -04:00
Leo Balduf
9f229c4ab6
add helper methods to get IPv4 and IPv6 peer
2016-05-17 00:49:15 -04:00
Leo Balduf
468eefee57
store: add ErrResourceDoesNotExist and update memory implementation
2016-05-17 00:49:06 -04:00
mrd0ll4r
7f16c55d81
make infohash and peerID byte arrays ( #169 )
2016-05-16 23:48:23 -04:00
Leo Balduf
373d3c4c31
make peer Equal work on values
2016-04-16 16:05:29 -04:00
Jimmy Zelinskie
1c3e0432d8
Merge pull request #162 from mrd0ll4r/lint
...
Lint, vet, Start/Stop
2016-04-12 14:06:41 -04:00
Leo Balduf
38856e82be
store: added peer parameters to AnnouncePeers
2016-04-12 12:15:38 -04:00
Leo Balduf
0c02ac9980
general: lint clean, vet clean
2016-04-11 21:26:26 -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
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
d5c00c24b1
Merge pull request #153 from mrd0ll4r/middleware-smallfix
...
hotfix: initialized scrape map
2016-04-02 20:31:40 -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
c2ab84bd1e
Merge pull request #150 from joshdekock/middleware-refactor-announce
...
middleware: add basic response middleware
2016-04-02 19:31:21 -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
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
Leo Balduf
3a1b321528
middleware: fixed client middleware package
2016-03-30 15:29:04 -04:00
Leo Balduf
eca7d9ee72
store/server: normalized error messages/formatting
2016-03-11 21:22:03 +01:00
Leo Balduf
1ba0f92ceb
store: normalized config
2016-03-11 21:21:31 +01:00
Leo Balduf
2a8eb9c719
store: added StringStore
2016-03-03 20:40:14 +01:00
Jimmy Zelinskie
0dfc26caea
remove config package
2016-03-02 21:05:33 -05:00
Leo Balduf
114322ce10
pool: fixed synchronization/stopping of the pool
2016-03-02 21:05:33 -05:00
Leo Balduf
34428cf465
config: fixed parsing of configs
2016-03-02 21:05:32 -05:00
Leo Balduf
919f97e4bf
doc: fixed IP blacklist/whitelist middleware documentation capitalization/snake_caseation
2016-03-02 21:05:32 -05:00
Leo Balduf
fdb399be9f
middleware: added client blacklist/whitelist middlewares
2016-03-02 21:05:32 -05:00
Leo Balduf
a64e655376
store: ClientStore now using chihaya.PeerID
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