Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyChange ¶
type KeyChange struct { Topic string Producer sarama.SyncProducer DB storage.Database }
KeyChange produces key change events for the sync API and federation sender to consume
func (*KeyChange) DefaultPartition ¶
DefaultPartition returns the default partition this process is sending key changes to. NB: A keyserver MUST send key changes to only 1 partition or else query operations will become inconsistent. Partitions can be sharded (e.g by hash of user ID of key change) but then all keyservers must be queried to calculate the entire set of key changes between two sync tokens.
func (*KeyChange) ProduceKeyChanges ¶
func (p *KeyChange) ProduceKeyChanges(keys []api.DeviceMessage) error
ProduceKeyChanges creates new change events for each key
Click to show internal directories.
Click to hide internal directories.