tracker/bittorrent
elotreum 77a52f9f30 http: allow for customized routes
Update to allow arrays of routes to be passed to the http frontend.
This also supports named parameters as permitted by the
router.

To avoid external dependencies in the middleware, a RouteParam and
RouteParams type was added to the bittorrent package.

Note: this eliminates the need for "enable_legacy_php_urls", as
the the additional route could be added to the route array. However,
this may be considered a breaking change.
2020-01-14 16:35:28 -07:00
..
bittorrent.go bittorrent: implement nicer String methods for various types 2018-02-17 13:11:27 +01:00
bittorrent_test.go bittorrent: anonymous fields for IPs in test table 2018-06-15 13:33:26 -04:00
client_id.go NewClientID now takes PeerID instead of string 2016-08-16 23:29:06 -04:00
client_id_test.go *: add subtests for all table driven tests 2017-12-29 17:44:45 -05:00
event.go rm copyright 2016-08-16 22:17:10 -04:00
event_test.go bittorrent: pretty print nil for subtest naming 2018-02-02 17:13:13 -05:00
params.go http: allow for customized routes 2020-01-14 16:35:28 -07:00
params_test.go bittorrent: fix out-of-range panics for URL parsing 2017-06-18 22:43:21 +02:00
sanitize.go bittorrent: validate port != 0 for announces 2018-02-13 10:13:57 +01:00