Bora M. Alper
16176b762e
Add linter CI ( #542 )
...
* Add linter CI
Signed-off-by: Bora M. Alper <bora@boramalper.org>
* Make gosec CI ignore SHA1 and upload sarif
Signed-off-by: Bora M. Alper <bora@boramalper.org>
* Fix formatting of source files
Signed-off-by: Bora M. Alper <bora@boramalper.org>
* Make go vet ignore unkeyed composite literals and fix other warnings
Signed-off-by: Bora M. Alper <bora@boramalper.org>
* Make staticcheck ignore unused methods and fix other warnings
Signed-off-by: Bora M. Alper <bora@boramalper.org>
* Use golangci-lint
Signed-off-by: Bora M. Alper <bora@boramalper.org>
2021-08-16 11:11:31 +10:00
Matt Joiner
c3c982b621
Fixes for wasm
2021-06-23 17:24:50 +10:00
Matt Joiner
305ba51dc2
Big logging cleanup to improve experience from README
2021-05-04 12:44:51 +10:00
Matt Joiner
e6da640bb2
Tidy up doc, file names, naming
2020-11-09 10:56:45 +11:00
Matt Joiner
cb1bf0f413
goimports -local
2019-08-21 20:58:40 +10:00
Matt Joiner
fc4fab91f5
Switch to goimports import sorting
...
Used to use sortimports, but it's old, and goimports seems to have an opinion now.
2018-11-02 23:12:01 +11:00
Matt Joiner
ed80150f08
github.com/go-fsnotify/fsnotify -> github.com/fsnotify/fsnotify
2018-03-27 17:31:52 +11:00
Matt Joiner
57216bd299
Standardize on krpc types, and extend PEX message type for IPv6
2018-02-11 15:13:00 +11:00
Matt Joiner
2f616b9d8b
megacheck and staticcheck fixes
2018-01-06 16:53:40 +11:00
Matt Joiner
3602d90b65
gofmt simplify
2016-11-22 14:01:09 +11:00
Matt Joiner
2a1cef7c9e
Remove the InfoEx type, and don't generate its infohash on the fly
...
Fixes #106 .
2016-08-26 20:29:05 +10:00
ctn
6525cf19f6
dirwatch: fix panic when attemting to copy func into [20]byte
2016-07-26 22:34:09 +03:00
Seth Hoenig
9f4bf70e17
refactor struct identifiers to follow conventional go names
2016-04-18 23:11:11 -05:00
Matt Joiner
fa511154e4
Move Magnet and friends into metainfo package
2016-04-04 13:48:39 +10:00
Matt Joiner
b80bb6393a
Use metainfo.Hash for piece and info hashes
2016-04-04 13:01:31 +10:00
Matt Joiner
0a3a5d6ae0
Finish fixing tests
2016-03-29 00:24:00 +11:00
Matt Joiner
3a206d4f12
util/profile was replaced by github.com/anacrolix/envpprof
2016-01-31 18:35:51 +11:00
Matt Joiner
f98d9c0a47
util/levelmu is no longer in use
2016-01-31 18:35:23 +11:00
Matt Joiner
99a0813d88
dht: Make Msg a struct with bencode tags
2015-10-23 12:41:45 +11:00
Matt Joiner
1db00a54f0
Redo the compact peer types
2015-08-17 19:52:47 +10:00
Matt Joiner
abdf1f049f
dht: Support IPv6 compact peers
2015-08-06 09:01:38 +10:00
Matt Joiner
d077fed72d
Some utils moved to missinggo
2015-08-04 00:29:01 +10:00
Matt Joiner
c5208569ca
Apply sortimports
2015-04-30 00:31:34 +10:00
Matt Joiner
526d9d738e
Rewrite imports to local bencode and metainfo
2015-04-27 14:55:01 +10:00
Matt Joiner
5f7ad4c769
Merge all the tracker packages, why would anyone want them separately?
2015-03-27 15:12:15 +11:00
Matt Joiner
3aa78763aa
Use rogpeppe's sortimports to fix this goimports ordering madness
2015-03-26 17:18:08 +11:00
Matt Joiner
842a32ae0c
Rewrite import paths for migration from Bitbucket
2015-03-20 16:37:44 +11:00
Matt Joiner
0f7c4c5bda
util: Support CopyExact with pointer source
...
Nice to avoid copying large value types.
2015-03-18 18:09:54 +11:00
Matt Joiner
0c7c2e1955
util.AddrIP, TCPAddr
2015-03-08 17:44:08 +11:00
Matt Joiner
c8e911c576
Remove util.LoggedHTTPServe, use package envpprof instead
2015-01-29 14:16:16 +11:00
Matt Joiner
caa389784a
util.Addr* funcs: Add optimizations for *net.UDPAddr
2014-12-26 17:16:20 +11:00
Matt Joiner
51f5273ba9
util/dirwatch: Some tidying
2014-12-03 12:10:29 -06:00
Matt Joiner
d70f6bcd20
loghttp: The status server should run on the default mux
2014-11-19 20:00:43 -06:00
Matt Joiner
7be828bb4c
util/loghttp: Don't implicitly expose pprof
2014-11-18 21:51:36 -06:00
Matt Joiner
00e2d42870
util: LoggedHTTPServe uses its own mux for use as a HTTP status server
2014-11-18 14:35:32 -06:00
Matt Joiner
a6914e5897
cmd/dht-get-peers: Expose debug HTTP
2014-11-18 09:56:05 -06:00
Matt Joiner
0668e33228
util/CopyExact: Test copying from interfaces and nil
2014-11-17 17:43:41 -06:00
Matt Joiner
32d31188fb
loghttp: Try successive port numbers until available
2014-11-16 23:24:25 -06:00
Matt Joiner
34a47a100e
Add util AddrIP and AddrPort functions
2014-11-16 21:20:49 -06:00
Matt Joiner
dcac7db0f0
Fix CopyExact to work on a source string
2014-11-16 13:52:37 -06:00
Matt Joiner
e3048403ce
check that util.CompactPeer is unmarshaled from the correct number of bytes
2014-11-16 13:05:19 -06:00
Matt Joiner
6c1c339ae4
Clean up magnet URI parsing errors in dirwatch
2014-09-11 14:18:59 +10:00
Matt Joiner
01a9c73428
Some fixes and improvements to dirwatch
2014-08-28 08:05:06 +10:00
Matt Joiner
caa1d65bc8
Add levelmu, a package implementing priority mutex with levels
2014-08-25 05:22:34 +10:00
Matt Joiner
60df4e100c
Simplify dirwatch to scan the whole directory on changes
2014-08-22 17:31:03 +10:00
Matt Joiner
cb68c984fa
Move some tracker.CompactPeer into util
2014-08-21 21:07:44 +10:00
Matt Joiner
5c1492bffe
Add CopyExact util function
2014-08-21 18:24:19 +10:00
Matt Joiner
8ff1c6f34a
Support watching for ".magnet" files in torrent directory
2014-07-24 13:44:23 +10:00
Matt Joiner
7cc22565ed
Abstract the status HTTP server into package util
2014-07-23 01:54:58 +10:00
Matt Joiner
6158b1f6ec
torrentfs: Match the active torrents to those found in the given directory
2014-07-23 01:54:11 +10:00