Kegan Dougal 48613956d1 Add UserCache and move unread count tracking to it
Keep it pure (not dependent on `state.Storage`) to make testing
easier. The responsibility for fanning out user cache updates
is with the Handler as it generally deals with glue code.
2021-10-11 16:22:41 +01:00
2021-06-03 15:29:46 +01:00
2021-10-11 10:37:10 +01:00
2021-10-05 16:22:02 +01:00
2021-10-10 13:09:50 +01:00
2021-05-14 16:49:33 +01:00
2021-10-08 12:31:08 +01:00
2021-10-10 13:09:50 +01:00
2021-05-13 16:25:42 +01:00
2021-09-28 13:48:42 +01:00

sync-v3

Run an experimental sync v3 server using an existing Matrix account. This is possible because, for the most part, v3 sync is a strict subset of v2 sync.

UNDER ACTIVE DEVELOPMENT, BREAKING CHANGES ARE FREQUENT.

Usage

$ createdb syncv3
$ go build ./cmd/syncv3
$ ./syncv3 -server "https://matrix-client.matrix.org" -db "user=$(whoami) dbname=syncv3 sslmode=disable"

Then visit http://localhost:8008/client/ (with trailing slash) and paste in the access_token for any account on -server.

When you hit the Sync button nothing will happen initially, but you should see:

INF Poller: v2 poll loop started ip=::1 since= user_id=@kegan:matrix.org

Wait for the first initial v2 sync to be processed (this can take minutes!) and then v3 APIs will be responsive.

API

API is under active development and is not stable.

Description
Proxy implementation of MSC3575's sync protocol.
Readme Apache-2.0 4.7 MiB
Languages
Go 96.2%
JavaScript 3.4%
HTML 0.2%
CSS 0.1%