input

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

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

func (r *Inputer) Start() error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL