Jimmy Zelinskie
301dd22f15
lint: actually lint all go files
2022-01-15 23:28:52 -05:00
Jimmy Zelinskie
456f9de190
pkg/metrics: move profiles into the metrics server
...
This change:
- renames pkg/prometheus into pkg/metrics
- renames the prometheus_addr config to metrics_addr
- adds pprof endpoints to the metrics server
- removes profile/trace cli flags
- adds endpoints for profiling to the metrics server
2021-02-27 12:49:24 -05:00
Jimmy Zelinskie
e266d218db
pkg/log: add type field for errors
2020-05-07 13:15:43 -04:00
Jimmy Zelinskie
5b771c47a1
go: bump dependencies, require Go 1.14
2020-04-30 19:39:17 -04:00
Justin Li
3c80ed8a8e
Fix goimports violations
2018-10-24 09:25:03 -04:00
Justin Li
d95120c817
Return []error from Stop() channel, allow recursive stop groups
2018-09-09 11:30:15 -04:00
Leo Balduf
55b57549a6
pkg/timecache: implement a time cache
2017-10-15 20:05:35 +02:00
Leo Balduf
13857d5bce
pkg/log: fix debug logging
2017-09-03 11:37:17 +02:00
Leo Balduf
3168f50601
log: add SetOutput function
2017-08-24 12:48:13 +02:00
Jimmy Zelinskie
034aa0b5dc
glide: update dependencies
...
This change also moves the logrus library to the lowercase import in
order to avoid breaking downstream projects vendoring chihaya.
2017-07-03 18:57:13 -04:00
Leo Balduf
8ed171b0ea
pkg/log: create wrapper around logrus
2017-06-26 20:46:40 +02:00
Leo Balduf
02336d10e7
pkg/xorshift: rebuild to use stack only
2017-06-19 09:45:26 +02:00
Leo Balduf
03b98e0090
pkg/prand: replace with pkg/xorshift
2017-06-12 22:07:05 +02:00
Jimmy Zelinskie
20d1cbf537
pkg/prometheus: init
2017-05-01 15:56:16 -04:00
Jimmy Zelinskie
a4b08c021b
mv pkg/stopper pkg/stop
...
This makes most of the callsites stutter slightly less.
2017-02-02 21:09:25 -05:00
Jimmy Zelinskie
e3e545e22e
stopper: move to pkg package
...
This also adds a package docs for the stopper package.
2016-12-11 21:36:01 -05:00
Leo Balduf
79213c6bbd
prand: add Container
2016-11-30 19:54:57 +01:00
Jimmy Zelinskie
1bff8d1571
delete old code
2016-08-16 22:17:10 -04:00
Leo Balduf
7e819dbb0c
pkg: add stopper
2016-06-19 12:40:13 -04:00
mrd0ll4r
7f16c55d81
make infohash and peerID byte arrays ( #169 )
2016-05-16 23:48:23 -04:00
Jimmy Zelinskie
8d1244d1c2
pkg/bencode,server/http: more general interfaces
...
Fixes #156 .
2016-04-03 23:05:00 -04:00
Leo Balduf
8f587df9c7
hotfix: fixed bencode
2016-04-02 20:55:56 -04:00
Leo Balduf
986aa41d65
pkg: added random string, peer
2016-04-02 17:19:29 -04: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