Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinedHostsFromEvents ¶ added in v0.8.6
func JoinedHostsFromEvents(evs []*gomatrixserverlib.Event) ([]types.JoinedHost, error)
JoinedHostsFromEvents turns a list of state events into a list of joined hosts. This errors if one of the events was invalid. It should be impossible for an invalid event to get this far in the pipeline.
Types ¶
type KeyChangeConsumer ¶
type KeyChangeConsumer struct {
// contains filtered or unexported fields
}
KeyChangeConsumer consumes events that originate in key server.
func NewKeyChangeConsumer ¶
func NewKeyChangeConsumer( process *process.ProcessContext, cfg *config.KeyServer, js nats.JetStreamContext, queues *queue.OutgoingQueues, store storage.Database, rsAPI roomserverAPI.FederationRoomserverAPI, ) *KeyChangeConsumer
NewKeyChangeConsumer creates a new KeyChangeConsumer. Call Start() to begin consuming from key servers.
func (*KeyChangeConsumer) Start ¶
func (t *KeyChangeConsumer) Start() error
Start consuming from key servers
type OutputPresenceConsumer ¶ added in v0.8.0
type OutputPresenceConsumer struct { ServerName gomatrixserverlib.ServerName // contains filtered or unexported fields }
OutputReceiptConsumer consumes events that originate in the clientapi.
func NewOutputPresenceConsumer ¶ added in v0.8.0
func NewOutputPresenceConsumer( process *process.ProcessContext, cfg *config.FederationAPI, js nats.JetStreamContext, queues *queue.OutgoingQueues, store storage.Database, ) *OutputPresenceConsumer
NewOutputPresenceConsumer creates a new OutputPresenceConsumer. Call Start() to begin consuming events.
func (*OutputPresenceConsumer) Start ¶ added in v0.8.0
func (t *OutputPresenceConsumer) Start() error
Start consuming from the clientapi
type OutputReceiptConsumer ¶ added in v0.8.0
type OutputReceiptConsumer struct { ServerName gomatrixserverlib.ServerName // contains filtered or unexported fields }
OutputReceiptConsumer consumes events that originate in the clientapi.
func NewOutputReceiptConsumer ¶ added in v0.8.0
func NewOutputReceiptConsumer( process *process.ProcessContext, cfg *config.FederationAPI, js nats.JetStreamContext, queues *queue.OutgoingQueues, store storage.Database, ) *OutputReceiptConsumer
NewOutputReceiptConsumer creates a new OutputReceiptConsumer. Call Start() to begin consuming typing events.
func (*OutputReceiptConsumer) Start ¶ added in v0.8.0
func (t *OutputReceiptConsumer) Start() error
Start consuming from the clientapi
type OutputRoomEventConsumer ¶
type OutputRoomEventConsumer struct {
// contains filtered or unexported fields
}
OutputRoomEventConsumer consumes events that originated in the room server.
func NewOutputRoomEventConsumer ¶
func NewOutputRoomEventConsumer( process *process.ProcessContext, cfg *config.FederationAPI, js nats.JetStreamContext, queues *queue.OutgoingQueues, store storage.Database, rsAPI api.FederationRoomserverAPI, ) *OutputRoomEventConsumer
NewOutputRoomEventConsumer creates a new OutputRoomEventConsumer. Call Start() to begin consuming from room servers.
func (*OutputRoomEventConsumer) Start ¶
func (s *OutputRoomEventConsumer) Start() error
Start consuming from room servers
type OutputSendToDeviceConsumer ¶ added in v0.8.0
type OutputSendToDeviceConsumer struct { ServerName gomatrixserverlib.ServerName // contains filtered or unexported fields }
OutputSendToDeviceConsumer consumes events that originate in the clientapi.
func NewOutputSendToDeviceConsumer ¶ added in v0.8.0
func NewOutputSendToDeviceConsumer( process *process.ProcessContext, cfg *config.FederationAPI, js nats.JetStreamContext, queues *queue.OutgoingQueues, store storage.Database, ) *OutputSendToDeviceConsumer
NewOutputSendToDeviceConsumer creates a new OutputSendToDeviceConsumer. Call Start() to begin consuming send-to-device events.
func (*OutputSendToDeviceConsumer) Start ¶ added in v0.8.0
func (t *OutputSendToDeviceConsumer) Start() error
Start consuming from the client api
type OutputTypingConsumer ¶ added in v0.8.0
type OutputTypingConsumer struct { ServerName gomatrixserverlib.ServerName // contains filtered or unexported fields }
OutputTypingConsumer consumes events that originate in the clientapi.
func NewOutputTypingConsumer ¶ added in v0.8.0
func NewOutputTypingConsumer( process *process.ProcessContext, cfg *config.FederationAPI, js nats.JetStreamContext, queues *queue.OutgoingQueues, store storage.Database, ) *OutputTypingConsumer
NewOutputTypingConsumer creates a new OutputTypingConsumer. Call Start() to begin consuming typing events.
func (*OutputTypingConsumer) Start ¶ added in v0.8.0
func (t *OutputTypingConsumer) Start() error
Start consuming from the clientapi