Skip to content

Commit

Permalink
make internal servers optional
Browse files Browse the repository at this point in the history
update deps
  • Loading branch information
vintikzzz committed Jan 5, 2025
1 parent 07a96aa commit 81ebcb4
Show file tree
Hide file tree
Showing 15 changed files with 852 additions and 964 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
protoc:
protoc -I torrent-web-seeder/ torrent-web-seeder/torrent-web-seeder.proto --go_out=plugins=grpc:torrent-web-seeder
gsed -i 's/,omitempty//' ./torrent-web-seeder/torrent-web-seeder.pb.go
protoc proto/torrent-web-seeder.proto --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative proto/torrent-web-seeder.proto
gsed -i 's/,omitempty//' ./proto/torrent-web-seeder.pb.go
2 changes: 1 addition & 1 deletion client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/urfave/cli"
"google.golang.org/grpc"

pb "github.com/webtor-io/torrent-web-seeder/torrent-web-seeder"
pb "github.com/webtor-io/torrent-web-seeder/proto"
)

func render(cl pb.TorrentWebSeederClient) error {
Expand Down
113 changes: 64 additions & 49 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,43 @@ module github.com/webtor-io/torrent-web-seeder
go 1.23.0

require (
code.cloudfoundry.org/bytefmt v0.0.0-20211005130812-5bb3c17173e5
code.cloudfoundry.org/bytefmt v0.24.0
github.com/RoaringBitmap/roaring v1.9.4 // indirect
github.com/anacrolix/chansync v0.6.0 // indirect
github.com/anacrolix/log v0.16.0
github.com/anacrolix/sync v0.5.2 // indirect
github.com/anacrolix/sync v0.5.3 // indirect
github.com/bakins/logrus-middleware v0.0.0-20180426214643-ce4c6f8deb07
github.com/bakins/test-helpers v0.0.0-20141028124846-af83df64dc31 // indirect
github.com/dustin/go-humanize v1.0.1
github.com/go-pg/pg/v10 v10.10.7 // indirect
github.com/golang/protobuf v1.5.3
github.com/go-pg/pg/v10 v10.14.0 // indirect
github.com/golang/protobuf v1.5.4
github.com/gosuri/uilive v0.0.4 // indirect
github.com/gosuri/uiprogress v0.0.1
github.com/juju/ratelimit v1.0.1
github.com/juju/ratelimit v1.0.2
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/pion/webrtc/v3 v3.3.3 // indirect
github.com/pion/webrtc/v3 v3.3.5 // indirect
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.9.0
github.com/urfave/cli v1.22.10
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/webtor-io/common-services v0.0.0-20221220192601-501cd9ace487
github.com/webtor-io/torrent-store v0.0.0-20221220185507-fbe016ed5cee
github.com/sirupsen/logrus v1.9.3
github.com/urfave/cli v1.22.16
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/webtor-io/common-services v0.0.0-20250105173005-fe4606378dff
github.com/webtor-io/torrent-store v0.0.0-20241225201251-f69217d210d6
go.etcd.io/bbolt v1.3.11 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/time v0.7.0
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
google.golang.org/grpc v1.56.3
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/time v0.9.0
google.golang.org/genproto v0.0.0-20250102185135-69823020774d // indirect
google.golang.org/grpc v1.69.2
)

require (
github.com/anacrolix/missinggo/v2 v2.7.4
github.com/anacrolix/torrent v1.57.1
github.com/edsrzf/mmap-go v1.1.0
github.com/anacrolix/missinggo/v2 v2.8.0
github.com/anacrolix/torrent v1.58.0
github.com/edsrzf/mmap-go v1.2.0
github.com/go-llsqlite/adapter v0.1.0
github.com/prometheus/client_golang v1.14.0
github.com/webtor-io/lazymap v0.0.0-20221030185154-1799721becef
google.golang.org/protobuf v1.30.0
github.com/prometheus/client_golang v1.20.5
github.com/webtor-io/lazymap v0.0.0-20241211155941-e81d935cfa1d
google.golang.org/protobuf v1.36.1
)

require (
Expand All @@ -50,21 +50,23 @@ require (
github.com/anacrolix/generics v0.0.3-0.20240902042256-7fb2702ef0ca // indirect
github.com/anacrolix/go-libutp v1.3.1 // indirect
github.com/anacrolix/missinggo v1.3.0 // indirect
github.com/anacrolix/missinggo/perf v1.0.0 // indirect
github.com/anacrolix/mmsg v1.1.1 // indirect
github.com/anacrolix/multiless v0.4.0 // indirect
github.com/anacrolix/stm v0.5.0 // indirect
github.com/anacrolix/upnp v0.1.4 // indirect
github.com/anacrolix/utp v0.2.0 // indirect
github.com/aws/aws-sdk-go v1.44.163 // indirect
github.com/aws/aws-sdk-go v1.55.5 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/benbjohnson/immutable v0.4.3 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.14.3 // indirect
github.com/bits-and-blooms/bitset v1.20.0 // indirect
github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/go-llsqlite/crawshaw v0.5.5 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
Expand All @@ -77,58 +79,71 @@ require (
github.com/huandu/xstrings v1.5.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/minio/sha256-simd v1.0.1 // indirect
github.com/mr-tron/base58 v1.2.0 // indirect
github.com/mschoch/smat v0.2.0 // indirect
github.com/multiformats/go-multihash v0.2.3 // indirect
github.com/multiformats/go-varint v0.0.7 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/ncruces/go-strftime v0.1.9 // indirect
github.com/pion/datachannel v1.5.9 // indirect
github.com/pion/datachannel v1.5.10 // indirect
github.com/pion/dtls/v2 v2.2.12 // indirect
github.com/pion/ice/v2 v2.3.35 // indirect
github.com/pion/interceptor v0.1.36 // indirect
github.com/pion/dtls/v3 v3.0.4 // indirect
github.com/pion/ice/v2 v2.3.37 // indirect
github.com/pion/ice/v4 v4.0.3 // indirect
github.com/pion/interceptor v0.1.37 // indirect
github.com/pion/logging v0.2.2 // indirect
github.com/pion/mdns v0.0.12 // indirect
github.com/pion/mdns/v2 v2.0.7 // indirect
github.com/pion/randutil v0.1.0 // indirect
github.com/pion/rtcp v1.2.14 // indirect
github.com/pion/rtp v1.8.9 // indirect
github.com/pion/sctp v1.8.33 // indirect
github.com/pion/rtcp v1.2.15 // indirect
github.com/pion/rtp v1.8.10 // indirect
github.com/pion/sctp v1.8.35 // indirect
github.com/pion/sdp/v3 v3.0.9 // indirect
github.com/pion/srtp/v2 v2.0.20 // indirect
github.com/pion/srtp/v3 v3.0.4 // indirect
github.com/pion/stun v0.6.1 // indirect
github.com/pion/stun/v3 v3.0.0 // indirect
github.com/pion/transport/v2 v2.2.10 // indirect
github.com/pion/transport/v3 v3.0.7 // indirect
github.com/pion/turn/v2 v2.1.6 // indirect
github.com/pion/turn/v4 v4.0.0 // indirect
github.com/pion/webrtc/v4 v4.0.7 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.39.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.61.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/protolambda/ctxlock v0.1.0 // indirect
github.com/redis/go-redis/v9 v9.7.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/rs/dnscache v0.0.0-20230804202142-fc85eb664529 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/stretchr/testify v1.9.0 // indirect
github.com/stretchr/testify v1.10.0 // indirect
github.com/tidwall/btree v1.7.0 // indirect
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc // indirect
github.com/vmihailenco/bufpool v0.1.11 // indirect
github.com/vmihailenco/tagparser v0.1.2 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/wlynxg/anet v0.0.5 // indirect
go.opentelemetry.io/otel v1.30.0 // indirect
go.opentelemetry.io/otel/metric v1.30.0 // indirect
go.opentelemetry.io/otel/trace v1.30.0 // indirect
golang.org/x/exp v0.0.0-20241004190924-225e2abe05e6 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/text v0.19.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/otel v1.33.0 // indirect
go.opentelemetry.io/otel/metric v1.33.0 // indirect
go.opentelemetry.io/otel/trace v1.33.0 // indirect
golang.org/x/exp v0.0.0-20250103183323-7d7fa50e5329 // indirect
golang.org/x/net v0.33.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/text v0.21.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250102185135-69823020774d // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/blake3 v1.3.0 // indirect
mellium.im/sasl v0.3.1 // indirect
modernc.org/libc v1.61.0 // indirect
modernc.org/mathutil v1.6.0 // indirect
modernc.org/memory v1.8.0 // indirect
modernc.org/sqlite v1.33.1 // indirect
mellium.im/sasl v0.3.2 // indirect
modernc.org/libc v1.61.6 // indirect
modernc.org/mathutil v1.7.1 // indirect
modernc.org/memory v1.8.1 // indirect
modernc.org/sqlite v1.34.4 // indirect
zombiezen.com/go/sqlite v1.4.0 // indirect
)
Loading

0 comments on commit 81ebcb4

Please sign in to comment.