Documentation ¶
Overview ¶
Package input contains the code processes new room events
Index ¶
Constants ¶
View Source
const MaximumProcessingTime = time.Minute * 2
TODO: Does this value make sense?
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inputer ¶
type Inputer struct { DB storage.Database JetStream nats.JetStreamContext Durable nats.SubOpt ServerName gomatrixserverlib.ServerName FSAPI fedapi.FederationInternalAPI KeyRing gomatrixserverlib.JSONVerifier ACLs *acls.ServerACLs InputRoomEventTopic string OutputRoomEventTopic string Queryer *query.Queryer // contains filtered or unexported fields }
func (*Inputer) InputRoomEvents ¶
func (r *Inputer) InputRoomEvents( ctx context.Context, request *api.InputRoomEventsRequest, response *api.InputRoomEventsResponse, )
InputRoomEvents implements api.RoomserverInternalAPI
func (*Inputer) Start ¶ added in v0.6.0
onMessage is called when a new event arrives in the roomserver input stream.
func (*Inputer) WriteOutputEvents ¶
func (r *Inputer) WriteOutputEvents(roomID string, updates []api.OutputEvent) error
WriteOutputEvents implements OutputRoomEventWriter
Click to show internal directories.
Click to hide internal directories.