producers

package
v0.0.0-...-76ad274 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FederationAPIPresenceProducer

type FederationAPIPresenceProducer struct {
	Topic     string
	JetStream nats.JetStreamContext
}

FederationAPIPresenceProducer produces events for the federation API server to consume

func (*FederationAPIPresenceProducer) SendPresence

func (f *FederationAPIPresenceProducer) SendPresence(
	userID string, presence types.Presence, statusMsg *string,
) error

type UserAPIReadProducer

type UserAPIReadProducer struct {
	Topic     string
	JetStream nats.JetStreamContext
}

UserAPIProducer produces events for the user API server to consume

func (*UserAPIReadProducer) SendReadUpdate

func (p *UserAPIReadProducer) SendReadUpdate(userID, roomID string, readPos, fullyReadPos types.StreamPosition) error

SendData sends account data to the user API server

type UserAPIStreamEventProducer

type UserAPIStreamEventProducer struct {
	Topic     string
	JetStream nats.JetStreamContext
}

UserAPIProducer produces events for the user API server to consume

func (*UserAPIStreamEventProducer) SendStreamEvent

SendData sends account data to the user API server

Jump to

Keyboard shortcuts

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