synapse-product/synapse/replication/tcp
Erik Johnston ac11fcbbb8
Add EventStreamPosition type (#8388)
The idea is to remove some of the places we pass around `int`, where it can represent one of two things:

1. the position of an event in the stream; or
2. a token that partitions the stream, used as part of the stream tokens.

The valid operations are then:

1. did a position happen before or after a token;
2. get all events that happened before or after a token; and
3. get all events between two tokens.

(Note that we don't want to allow other operations as we want to change the tokens to be vector clocks rather than simple ints)
2020-09-24 13:24:17 +01:00
..
streams Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
__init__.py Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
client.py Add EventStreamPosition type (#8388) 2020-09-24 13:24:17 +01:00
commands.py Be stricter about JSON that is accepted by Synapse (#8106) 2020-08-19 07:26:03 -04:00
handler.py Add experimental support for sharding event persister. Again. (#8294) 2020-09-14 10:16:41 +01:00
protocol.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
redis.py Handle replication commands synchronously where possible (#7876) 2020-07-27 18:54:43 +01:00
resource.py Fix typos in comments. 2020-09-14 11:46:58 -04:00