tracker/server/store/memory
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
..
client_store.go store: normalized config 2016-03-11 21:21:31 +01:00
ip_store.go store: normalized config 2016-03-11 21:21:31 +01:00
ip_store_test.go store: normalized config 2016-03-11 21:21:31 +01:00
peer_store.go store/peer_store: Add tests & functions for getting info about peers 2016-04-02 21:49:08 +01:00
peer_store_test.go store/peer_store: Add tests & functions for getting info about peers 2016-04-02 21:49:08 +01:00
string_store.go store: normalized config 2016-03-11 21:21:31 +01:00
string_store_test.go store: normalized config 2016-03-11 21:21:31 +01:00