Commit graph

873 commits

Author SHA1 Message Date
Leo Balduf
97444f08a4 memory: add ScrapeSwarm method 2016-09-08 11:29:36 -04:00
Leo Balduf
b1576da355 storage: add ScrapeSwarm method 2016-09-08 11:28:23 -04:00
mrd0ll4r
0cdbf9b416 Merge pull request #219 from jzelinskie/diagram
readme: update diagram
2016-09-08 09:22:23 -04:00
Jimmy Zelinskie
001d07895e readme: update diagram 2016-09-08 00:59:09 -04:00
mrd0ll4r
52d7039a3e Merge pull request #217 from jzelinskie/bencode
bencode: add missing error handling
2016-09-07 20:51:14 -04:00
Jimmy Zelinskie
578697b136 Merge pull request #218 from mrd0ll4r/travis-golint-fix
travis: fix swallowing of exit codes in golint loop
2016-09-07 19:56:39 -04:00
Leo Balduf
51529da29d travis: fix swallowing of exit codes in golint loop 2016-09-07 13:57:31 -04:00
Jimmy Zelinskie
2415bc71c6 bencode: add missing error handling
In addition, this PR attempts to simplify some functions according to
the output of `gocyclo -n 15`.
2016-09-06 23:43:22 -04:00
mrd0ll4r
6b376e3522 Merge pull request #213 from jzelinskie/mispell
add goreportcard badge
2016-09-06 09:34:14 -04:00
Jimmy Zelinskie
625b372109 *: remove contributors file
git sufficiently tracks this
2016-09-06 00:47:44 -04:00
Jimmy Zelinskie
210b4d40e5 readme: add goreportcard badge 2016-09-06 00:46:23 -04:00
Jimmy Zelinskie
4f33000d7e stopper: embed lock 2016-09-06 00:44:33 -04:00
Jimmy Zelinskie
79d5838077 *: fix mispellings 2016-09-06 00:44:13 -04:00
mrd0ll4r
bcdbb04f74 Merge pull request #207 from chihaya/refactor
merge refactor into master
2016-09-05 19:33:09 -04:00
Jimmy Zelinskie
2c2336901c Merge pull request #212 from mrd0ll4r/refactor-cotexts
middleware: make hooks return a context
2016-09-05 18:58:54 -04:00
Leo Balduf
1ff41d7882 middleware: make hooks return a context 2016-09-05 18:26:04 -04:00
mrd0ll4r
bf399147e2 Merge pull request #211 from jzelinskie/dockerfile
add Dockerfile and Glide
2016-09-05 18:25:05 -04:00
Jimmy Zelinskie
49c06aac17 add dockerfile and glide config 2016-09-05 18:18:29 -04:00
Jimmy Zelinskie
964fa46992 Merge pull request #210 from mrd0ll4r/refactor-documentation
Refactor documentation
2016-09-05 16:12:14 -04:00
Jimmy Zelinskie
a73d94937e Merge pull request #198 from mrd0ll4r/refactor-http-ipv4-compact
http: fix encoding of IPv4 peers with 16-byte addresses
2016-09-05 16:11:19 -04:00
Leo Balduf
c31fa42659 travis: enable linting 2016-09-05 14:59:24 -04:00
Leo Balduf
146fbedb86 general: add missing documentation
Fixes #46
2016-09-05 14:58:58 -04:00
Leo Balduf
d794f92c14 http: fix encoding of IPv4 peers with 16-byte addresses 2016-09-05 14:55:15 -04:00
mrd0ll4r
f6e362e506 Merge pull request #209 from jzelinskie/logrus
misc fixes for #207
2016-09-05 13:40:52 -04:00
Jimmy Zelinskie
57ee2d0c90 bytepool: enforce equal length and cap 2016-09-05 12:32:38 -04:00
Jimmy Zelinskie
c4706022d7 udp: remove unnecessary returns in switch stmt 2016-09-05 12:27:00 -04:00
Jimmy Zelinskie
093a748457 frontend: s/ctx.TODO/ctx.Background 2016-09-05 12:25:11 -04:00
Jimmy Zelinskie
6cd505269e bt: remove unused Tracker interface 2016-09-05 12:22:49 -04:00
Jimmy Zelinskie
f15ae55b3a Merge pull request #208 from mrd0ll4r/refactor-udp-buffers
udp: use free list for response buffers
2016-09-05 12:21:56 -04:00
Jimmy Zelinskie
486e898ce9 cmd: add --debug for debug logging 2016-09-05 12:20:15 -04:00
Jimmy Zelinskie
fa32839623 replace std log w/ logrus
There still needs to be much more logged with the debug level.
2016-09-05 12:10:42 -04:00
Leo Balduf
8997d76f1e udp: use free list for response buffers 2016-09-03 17:09:00 -04:00
Jimmy Zelinskie
be8387eee8 Merge pull request #206 from mrd0ll4r/refactor-udp-ipv6
udp: add support for opentracker-style IPv6 announces
2016-09-03 15:25:45 -04:00
Leo Balduf
d66ed27dd9 udp: add support for opentracker-style IPv6 announces 2016-09-03 15:15:11 -04:00
Jimmy Zelinskie
10dff98f8e Merge pull request #203 from mrd0ll4r/refactor-bep41
udp: implement bep41
2016-09-03 14:32:49 -04:00
Leo Balduf
c667497c6d udp: implement bep41 2016-09-03 14:06:07 -04:00
Leo Balduf
6260570635 http: extract query parser to bittorrent package 2016-09-03 14:06:03 -04:00
mrd0ll4r
a4bddccb41 Merge pull request #205 from jzelinskie/clientapproval
middleware: add blacklist support
2016-09-01 22:26:10 -04:00
Jimmy Zelinskie
7ca15e9943 middleware: add blacklist support 2016-09-01 20:49:15 -04:00
mrd0ll4r
302b99c743 Merge pull request #204 from jzelinskie/jwtmw
implement JWT middleware
2016-09-01 20:08:40 -04:00
Jimmy Zelinskie
e39da6b4e6 main: add CreateHooks() method for ConfigFile
This change simplifies middleware.Logic to having only one list of
PreHooks and one list of PostHooks.
2016-09-01 19:48:49 -04:00
Jimmy Zelinskie
6e790eed74 add initial jwt middleware 2016-09-01 19:48:49 -04:00
mrd0ll4r
b5bf6b8acd Merge pull request #201 from jzelinskie/main-split
cmd: pull closure out into its own func and add config.go
2016-08-24 22:30:15 -04:00
Jimmy Zelinskie
9dc5372796 cmd: pull closure out into its own func
Also introduce a config.go.
2016-08-24 20:01:06 -04:00
Jimmy Zelinskie
6ba8e475ca readme: add diagram 2016-08-24 13:31:36 -04:00
Jimmy Zelinskie
cc494a91f7 Merge pull request #200 from mrd0ll4r/main-cleanup
cmd/chihaya: clean up
2016-08-20 12:10:30 -04:00
Leo Balduf
0e0f8e7ad1 cmd/chihaya: clean up 2016-08-20 10:21:10 -04:00
mrd0ll4r
0e125b8a71 Merge pull request #199 from chihaya/arch-desc
readme: add architecture section
2016-08-20 09:15:19 -04:00
Jimmy Zelinskie
4b24463883 readme: add architecture section 2016-08-20 02:27:24 -04:00
Jimmy Zelinskie
23d59c2837 Merge pull request #197 from mrd0ll4r/refactor-udp
Refactor udp
2016-08-20 00:55:15 -04:00