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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EDUServerInputAPI

type EDUServerInputAPI struct {
	// Cache to store the current typing members in each room.
	Cache *cache.EDUCache
	// The kafka topic to output new typing events to.
	OutputTypingEventTopic string
	// The kafka topic to output new send to device events to.
	OutputSendToDeviceEventTopic string
	// The kafka topic to output new receipt events to
	OutputReceiptEventTopic string
	// The kafka topic to output new key change events to
	OutputKeyChangeEventTopic string
	// kafka producer
	JetStream nats.JetStreamContext
	// Internal user query API
	UserAPI userapi.UserInternalAPI
	// our server name
	ServerName gomatrixserverlib.ServerName
}

EDUServerInputAPI implements api.EDUServerInputAPI

func (*EDUServerInputAPI) InputCrossSigningKeyUpdate added in v0.5.0

func (t *EDUServerInputAPI) InputCrossSigningKeyUpdate(
	ctx context.Context,
	request *api.InputCrossSigningKeyUpdateRequest,
	response *api.InputCrossSigningKeyUpdateResponse,
) error

InputCrossSigningKeyUpdate implements api.EDUServerInputAPI

func (*EDUServerInputAPI) InputReceiptEvent added in v0.3.0

func (t *EDUServerInputAPI) InputReceiptEvent(
	ctx context.Context,
	request *api.InputReceiptEventRequest,
	response *api.InputReceiptEventResponse,
) error

InputReceiptEvent implements api.EDUServerInputAPI TODO: Intelligently batch requests sent by the same user (e.g wait a few milliseconds before emitting output events)

func (*EDUServerInputAPI) InputSendToDeviceEvent

func (t *EDUServerInputAPI) InputSendToDeviceEvent(
	ctx context.Context,
	request *api.InputSendToDeviceEventRequest,
	response *api.InputSendToDeviceEventResponse,
) error

InputTypingEvent implements api.EDUServerInputAPI

func (*EDUServerInputAPI) InputTypingEvent

func (t *EDUServerInputAPI) InputTypingEvent(
	ctx context.Context,
	request *api.InputTypingEventRequest,
	response *api.InputTypingEventResponse,
) error

InputTypingEvent implements api.EDUServerInputAPI

Jump to

Keyboard shortcuts

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