producers

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FederationAPIPresenceProducer added in v0.8.0

type FederationAPIPresenceProducer struct {
	Topic     string
	JetStream nats.JetStreamContext
}

FederationAPIPresenceProducer produces events for the federation API server to consume

func (*FederationAPIPresenceProducer) SendPresence added in v0.8.0

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