Skip to content

Commit

Permalink
feat: add bittorrent cmd (#265)
Browse files Browse the repository at this point in the history
* feat: rm the QUIC dependence of go-libp2p-quic-transport temporarily

* feat: update golang version

* build: golang1.18 require a new format when there is a build in the first line

* feat: add bittorrent cmd

* feat[bittorrent]: add metainfo cmd

* feat[bittorrent]: add scrape and bencode cmds

* feat[bittorrent]: add download cmd

* feat: add some human-readable statistics

* feat: rm the file after download completed

* feat[bittorrent]: add bt serve cmd

* fix: getting metainfo support magnet

* ci: update go mod

* test: fix cmd test

* fix[bittorrent]: update the description of serveing
  • Loading branch information
Shawn-Huang-Tron authored Nov 24, 2022
1 parent 50e3ff4 commit d26e2c7
Show file tree
Hide file tree
Showing 46 changed files with 1,127 additions and 193 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16
FROM golang:1.18
MAINTAINER TRON-US <support@tron.network>

# Install deps
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.testing
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15
FROM golang:1.18
MAINTAINER TRON-US <support@tron.network>

# Install deps
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.unit_testing
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15
FROM golang:1.18
MAINTAINER TRON-US <support@tron.network>

# Dockerfile.unit_testing will build an image to run the go unit tests.
Expand Down
3 changes: 2 additions & 1 deletion assets/bindata_dep.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build never,!never
//go:build never && !never
// +build never,!never

package assets

Expand Down
1 change: 1 addition & 0 deletions cmd/btfs/daemon_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package main
Expand Down
1 change: 1 addition & 0 deletions cmd/btfs/daemon_other.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux

package main
Expand Down
1 change: 1 addition & 0 deletions cmd/btfs/runmain_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build testrunmain
// +build testrunmain

package main
Expand Down
3 changes: 2 additions & 1 deletion cmd/btfs/util/ui.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build !windows
//go:build !windows
// +build !windows

package util

Expand Down
1 change: 1 addition & 0 deletions cmd/btfs/util/ulimit_freebsd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build freebsd
// +build freebsd

package util
Expand Down
1 change: 1 addition & 0 deletions cmd/btfs/util/ulimit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package util
Expand Down
1 change: 1 addition & 0 deletions cmd/btfs/util/ulimit_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build darwin || linux || netbsd || openbsd
// +build darwin linux netbsd openbsd

package util
Expand Down
1 change: 1 addition & 0 deletions cmd/btfs/util/ulimit_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package util
Expand Down
Loading

0 comments on commit d26e2c7

Please sign in to comment.