mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-27 00:31:55 -06:00
f05ce478f0
* Add Pushserver component with Pushers API Co-authored-by: Tommie Gannert <tommie@gannert.se> Co-authored-by: Dan Peleg <dan@globekeeper.com> * Wire Pushserver component Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com> * Add PushGatewayClient. The full event format is required for Sytest. * Add a pushrules module. * Change user API account creation to use the new pushrules module's defaults. Introduces "scope" as required by client API, and some small field tweaks to make some 61push Sytests pass. * Add push rules query/put API in Pushserver. This manipulates account data over User API, and fires sync messages for changes. Those sync messages should, according to an existing TODO in clientapi, be moved to userapi. Forks clientapi/producers/syncapi.go to pushserver/ for later extension. * Add clientapi routes for push rules to Pushserver. A cleanup would be to move more of the name-splitting logic into pushrules.go, to depollute routing.go. * Output rooms.join.unread_notifications in /sync. This is the read-side. Pushserver will be the write-side. * Implement pushserver/storage for notifications. * Use PushGatewayClient and the pushrules module in Pushserver's room consumer. * Use one goroutine per user to avoid locking up the entire server for one bad push gateway. * Split pushing by format. * Send one device per push. Sytest does not support coalescing multiple devices into one push. Matches Synapse. Either we change Sytest, or remove the group-by-url-and-format logic. * Write OutputNotificationData from push server. Sync API is already the consumer. * Implement read receipt consumers in Pushserver. Supports m.read and m.fully_read receipts. * Add clientapi route for /unstable/notifications. * Rename to UpsertPusher for clarity and handle pusher update * Fix linter errors * Ignore body.Close() error check * Fix push server internal http wiring * Add 40 newly passing 61push tests to whitelist * Add next 12 newly passing 61push tests to whitelist * Send notification data before notifying users in EDU server consumer * NATS JetStream * Goodbye sarama * Fix `NewStreamTokenFromString` * Consume on the correct topic for the roomserver * Don't panic, NAK instead * Move push notifications into the User API * Don't set null values since that apparently causes Element upsetti * Also set omitempty on conditions * Fix bug so that we don't override the push rules unnecessarily * Tweak defaults * Update defaults * More tweaks * Move `/notifications` onto `r0`/`v3` mux * User API will consume events and read/fully read markers from the sync API with stream positions, instead of consuming directly Co-authored-by: Piotr Kozimor <p1996k@gmail.com> Co-authored-by: Tommie Gannert <tommie@gannert.se> Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
78 lines
3.4 KiB
Modula-2
78 lines
3.4 KiB
Modula-2
module github.com/matrix-org/dendrite
|
|
|
|
replace github.com/nats-io/nats-server/v2 => github.com/neilalexander/nats-server/v2 v2.7.4-0.20220302103432-6b04b9f12740
|
|
|
|
replace github.com/nats-io/nats.go => github.com/neilalexander/nats.go v1.11.1-0.20220104162523-f4ddebe1061c
|
|
|
|
require (
|
|
github.com/Arceliar/ironwood v0.0.0-20211125050254-8951369625d0
|
|
github.com/Arceliar/phony v0.0.0-20210209235338-dde1a8dca979
|
|
github.com/DATA-DOG/go-sqlmock v1.5.0
|
|
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
|
|
github.com/MFAshby/stdemuxerhook v1.0.0
|
|
github.com/Masterminds/semver/v3 v3.1.1
|
|
github.com/codeclysm/extract v2.2.0+incompatible
|
|
github.com/containerd/containerd v1.5.9 // indirect
|
|
github.com/docker/docker v20.10.12+incompatible
|
|
github.com/docker/go-connections v0.4.0
|
|
github.com/frankban/quicktest v1.14.0 // indirect
|
|
github.com/getsentry/sentry-go v0.12.0
|
|
github.com/gologme/log v1.3.0
|
|
github.com/google/go-cmp v0.5.6
|
|
github.com/google/uuid v1.2.0
|
|
github.com/gorilla/mux v1.8.0
|
|
github.com/gorilla/websocket v1.4.2
|
|
github.com/h2non/filetype v1.1.3 // indirect
|
|
github.com/hashicorp/golang-lru v0.5.4
|
|
github.com/juju/testing v0.0.0-20211215003918-77eb13d6cad2 // indirect
|
|
github.com/lib/pq v1.10.4
|
|
github.com/libp2p/go-libp2p v0.13.0
|
|
github.com/libp2p/go-libp2p-circuit v0.4.0
|
|
github.com/libp2p/go-libp2p-core v0.8.3
|
|
github.com/libp2p/go-libp2p-gostream v0.3.1
|
|
github.com/libp2p/go-libp2p-http v0.2.0
|
|
github.com/libp2p/go-libp2p-kad-dht v0.11.1
|
|
github.com/libp2p/go-libp2p-pubsub v0.4.1
|
|
github.com/libp2p/go-libp2p-record v0.1.3
|
|
github.com/lucas-clemente/quic-go v0.22.0
|
|
github.com/marten-seemann/qtls-go1-17 v0.1.0 // indirect
|
|
github.com/matrix-org/dugong v0.0.0-20210921133753-66e6b1c67e2e
|
|
github.com/matrix-org/go-http-js-libp2p v0.0.0-20200518170932-783164aeeda4
|
|
github.com/matrix-org/go-sqlite3-js v0.0.0-20210709140738-b0d1ba599a6d
|
|
github.com/matrix-org/gomatrix v0.0.0-20210324163249-be2af5ef2e16
|
|
github.com/matrix-org/gomatrixserverlib v0.0.0-20220301141554-e124bd7d7902
|
|
github.com/matrix-org/pinecone v0.0.0-20220223104432-0f0afd1a46aa
|
|
github.com/matrix-org/util v0.0.0-20200807132607-55161520e1d4
|
|
github.com/mattn/go-sqlite3 v1.14.10
|
|
github.com/morikuni/aec v1.0.0 // indirect
|
|
github.com/nats-io/nats-server/v2 v2.7.3
|
|
github.com/nats-io/nats.go v1.13.1-0.20220121202836-972a071d373d
|
|
github.com/neilalexander/utp v0.1.1-0.20210727203401-54ae7b1cd5f9
|
|
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
|
|
github.com/ngrok/sqlmw v0.0.0-20211220175533-9d16fdc47b31
|
|
github.com/opentracing/opentracing-go v1.2.0
|
|
github.com/patrickmn/go-cache v2.1.0+incompatible
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/pressly/goose v2.7.0+incompatible
|
|
github.com/prometheus/client_golang v1.12.1
|
|
github.com/sirupsen/logrus v1.8.1
|
|
github.com/tidwall/gjson v1.14.0
|
|
github.com/tidwall/sjson v1.2.4
|
|
github.com/uber/jaeger-client-go v2.30.0+incompatible
|
|
github.com/uber/jaeger-lib v2.4.1+incompatible
|
|
github.com/yggdrasil-network/yggdrasil-go v0.4.2
|
|
go.uber.org/atomic v1.9.0
|
|
golang.org/x/crypto v0.0.0-20220214200702-86341886e292
|
|
golang.org/x/image v0.0.0-20211028202545-6944b10bf410
|
|
golang.org/x/mobile v0.0.0-20220112015953-858099ff7816
|
|
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
|
|
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9 // indirect
|
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
|
|
gopkg.in/h2non/bimg.v1 v1.1.5
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
|
|
nhooyr.io/websocket v1.8.7
|
|
)
|
|
|
|
go 1.16
|