consumers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: AGPL-3.0 Imports: 32 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputClientDataConsumer

type OutputClientDataConsumer struct {
	// contains filtered or unexported fields
}

OutputClientDataConsumer consumes events that originated in the client API server.

func NewOutputClientDataConsumer

func NewOutputClientDataConsumer(
	process *process.ProcessContext,
	cfg *config.SyncAPI,
	js nats.JetStreamContext,
	nats *nats.Conn,
	store storage.Database,
	notifier *notifier.Notifier,
	stream streams.StreamProvider,
	fts *fulltext.Search,
) *OutputClientDataConsumer

NewOutputClientDataConsumer creates a new OutputClientData consumer. Call Start() to begin consuming from room servers.

func (*OutputClientDataConsumer) Start

func (s *OutputClientDataConsumer) Start() error

Start consuming from room servers

type OutputKeyChangeEventConsumer

type OutputKeyChangeEventConsumer struct {
	// contains filtered or unexported fields
}

OutputKeyChangeEventConsumer consumes events that originated in the key server.

func NewOutputKeyChangeEventConsumer

func NewOutputKeyChangeEventConsumer(
	process *process.ProcessContext,
	cfg *config.SyncAPI,
	topic string,
	js nats.JetStreamContext,
	rsAPI roomserverAPI.SyncRoomserverAPI,
	store storage.Database,
	notifier *notifier.Notifier,
	stream streams.StreamProvider,
) *OutputKeyChangeEventConsumer

NewOutputKeyChangeEventConsumer creates a new OutputKeyChangeEventConsumer. Call Start() to begin consuming from the key server.

func (*OutputKeyChangeEventConsumer) Start

Start consuming from the key server

type OutputNotificationDataConsumer

type OutputNotificationDataConsumer struct {
	// contains filtered or unexported fields
}

OutputNotificationDataConsumer consumes events that originated in the Push server.

func NewOutputNotificationDataConsumer

func NewOutputNotificationDataConsumer(
	process *process.ProcessContext,
	cfg *config.SyncAPI,
	js nats.JetStreamContext,
	store storage.Database,
	notifier *notifier.Notifier,
	stream streams.StreamProvider,
) *OutputNotificationDataConsumer

NewOutputNotificationDataConsumer creates a new consumer. Call Start() to begin consuming.

func (*OutputNotificationDataConsumer) Start

Start starts consumption.

type OutputReceiptEventConsumer

type OutputReceiptEventConsumer struct {
	// contains filtered or unexported fields
}

OutputReceiptEventConsumer consumes events that originated in the EDU server.

func NewOutputReceiptEventConsumer

func NewOutputReceiptEventConsumer(
	process *process.ProcessContext,
	cfg *config.SyncAPI,
	js nats.JetStreamContext,
	store storage.Database,
	notifier *notifier.Notifier,
	stream streams.StreamProvider,
) *OutputReceiptEventConsumer

NewOutputReceiptEventConsumer creates a new OutputReceiptEventConsumer. Call Start() to begin consuming from the EDU server.

func (*OutputReceiptEventConsumer) Start

func (s *OutputReceiptEventConsumer) Start() error

Start consuming receipts events.

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.SyncAPI,
	js nats.JetStreamContext,
	store storage.Database,
	notifier *notifier.Notifier,
	pduStream streams.StreamProvider,
	inviteStream streams.StreamProvider,
	rsAPI api.SyncRoomserverAPI,
	fts *fulltext.Search,
	asProducer *producers.AppserviceEventProducer,
) *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 OutputSendToDeviceEventConsumer

type OutputSendToDeviceEventConsumer struct {
	// contains filtered or unexported fields
}

OutputSendToDeviceEventConsumer consumes events that originated in the EDU server.

func NewOutputSendToDeviceEventConsumer

func NewOutputSendToDeviceEventConsumer(
	process *process.ProcessContext,
	cfg *config.SyncAPI,
	js nats.JetStreamContext,
	store storage.Database,
	userAPI api.SyncKeyAPI,
	notifier *notifier.Notifier,
	stream streams.StreamProvider,
) *OutputSendToDeviceEventConsumer

NewOutputSendToDeviceEventConsumer creates a new OutputSendToDeviceEventConsumer. Call Start() to begin consuming from the EDU server.

func (*OutputSendToDeviceEventConsumer) Start

Start consuming send-to-device events.

type OutputTypingEventConsumer

type OutputTypingEventConsumer struct {
	// contains filtered or unexported fields
}

OutputTypingEventConsumer consumes events that originated in the EDU server.

func NewOutputTypingEventConsumer

func NewOutputTypingEventConsumer(
	process *process.ProcessContext,
	cfg *config.SyncAPI,
	js nats.JetStreamContext,
	eduCache *caching.EDUCache,
	notifier *notifier.Notifier,
	stream streams.StreamProvider,
) *OutputTypingEventConsumer

NewOutputTypingEventConsumer creates a new OutputTypingEventConsumer. Call Start() to begin consuming from the EDU server.

func (*OutputTypingEventConsumer) Start

func (s *OutputTypingEventConsumer) Start() error

Start consuming typing events.

type PresenceConsumer

type PresenceConsumer struct {
	// contains filtered or unexported fields
}

OutputTypingEventConsumer consumes events that originated in the EDU server.

func NewPresenceConsumer

func NewPresenceConsumer(
	process *process.ProcessContext,
	cfg *config.SyncAPI,
	js nats.JetStreamContext,
	nats *nats.Conn,
	db storage.Database,
	notifier *notifier.Notifier,
	stream streams.StreamProvider,
	deviceAPI api.SyncUserAPI,
) *PresenceConsumer

NewPresenceConsumer creates a new PresenceConsumer. Call Start() to begin consuming events.

func (*PresenceConsumer) EmitPresence

func (s *PresenceConsumer) EmitPresence(ctx context.Context, userID string, presence types.Presence, statusMsg *string, ts spec.Timestamp, fromSync bool)

func (*PresenceConsumer) Start

func (s *PresenceConsumer) Start() error

Start consuming typing events.

Jump to

Keyboard shortcuts

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