aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorHilmar Gústafsson <LiHRaM@users.noreply.github.com>2020-04-14 17:15:59 +0200
committerGitHub <noreply@github.com>2020-04-14 16:15:59 +0100
commit73d2f59e303fa998f997c483bb6843bf77e069e5 (patch)
treea10ca5e3976f4ec1f3c1a87472dc475b10ad6af7 /go.mod
parent48303d06cb91d19582f776af32ee22e5d820f031 (diff)
WIP: Add libp2p-go (#956)
* Add libp2p-go * Some tweaks, tidying up (cherry picked from commit 1a5bb121f8121c4f68a27abbf25a9a35a1b7c63e) * Move p2p dockerfile (cherry picked from commit 8d3bf44ea1bf37f950034e73bcdc315afdabe79a) * Remove containsBackwardsExtremity * Fix some linter errors, update some libp2p packages/calls, other tidying up * Add -port for dendrite-p2p-demo * Use instance name as key ID * Remove P2P demo docker stuff, no longer needed now that we have SQLite * Remove Dockerfile-p2p too * Remove p2p logic from dendrite-monolith-server * Inject publicRoomsDB in publicroomsapi Inject publicRoomsDB instead of switching on base.libP2P. See: https://github.com/matrix-org/dendrite/pull/956/files?file-filters%5B%5D=.go#r406276914 * Fix lint warning * Extract mDNSListener from base.go * Extract CreateFederationClient into demo * Create P2PDendrite from BaseDendrite Extract logic specific to P2PDendrite from base.go * Set base.go to upstream/master * Move pubsub to demo cmd * Move PostgreswithDHT to cmd * Remove unstable features * Add copyrights * Move libp2pvalidator into p2pdendrite * Rename dendrite-p2p-demo -> dendrite-demo-libp2p * Update copyrights * go mod tidy Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod17
1 files changed, 13 insertions, 4 deletions
diff --git a/go.mod b/go.mod
index 5854e552..ec8f3eb6 100644
--- a/go.mod
+++ b/go.mod
@@ -3,8 +3,16 @@ module github.com/matrix-org/dendrite
require (
github.com/gorilla/mux v1.7.3
github.com/hashicorp/golang-lru v0.5.4
+ github.com/kr/pretty v0.2.0 // indirect
github.com/lib/pq v1.2.0
+ github.com/libp2p/go-libp2p v0.6.0
+ github.com/libp2p/go-libp2p-circuit v0.1.4
github.com/libp2p/go-libp2p-core v0.5.0
+ github.com/libp2p/go-libp2p-gostream v0.2.1
+ github.com/libp2p/go-libp2p-http v0.1.5
+ github.com/libp2p/go-libp2p-kad-dht v0.5.0
+ github.com/libp2p/go-libp2p-pubsub v0.2.5
+ github.com/libp2p/go-libp2p-record v0.1.2
github.com/matrix-org/dugong v0.0.0-20171220115018-ea0a4690a0d5
github.com/matrix-org/go-http-js-libp2p v0.0.0-20200318135427-31631a9ef51f
github.com/matrix-org/go-sqlite3-js v0.0.0-20200325174927-327088cdef10
@@ -12,10 +20,11 @@ require (
github.com/matrix-org/gomatrixserverlib v0.0.0-20200409140603-8b9a51fe9b89
github.com/matrix-org/naffka v0.0.0-20200127221512-0716baaabaf1
github.com/matrix-org/util v0.0.0-20190711121626-527ce5ddefc7
- github.com/mattn/go-sqlite3 v2.0.2+incompatible
+ github.com/mattn/go-sqlite3 v2.0.3+incompatible
github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5
github.com/opentracing/opentracing-go v1.1.0
- github.com/pkg/errors v0.8.1
+ github.com/pierrec/lz4 v2.5.0+incompatible // indirect
+ github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.4.1
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
github.com/sirupsen/logrus v1.4.2
@@ -24,11 +33,11 @@ require (
github.com/uber/jaeger-client-go v2.22.1+incompatible
github.com/uber/jaeger-lib v2.2.0+incompatible
go.uber.org/atomic v1.6.0
- golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d
+ golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d
golang.org/x/tools v0.0.0-20200402223321-bcf690261a44 // indirect
gopkg.in/Shopify/sarama.v1 v1.20.1
gopkg.in/h2non/bimg.v1 v1.0.18
- gopkg.in/yaml.v2 v2.2.5
+ gopkg.in/yaml.v2 v2.2.8
)
go 1.13