rooms

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RoomAttendantsEventTypeJoined = RoomAttendantsEventType{"joined"}
	RoomAttendantsEventTypeLeft   = RoomAttendantsEventType{"left"}
)

Functions

This section is empty.

Types

type AttendantEventPublisher

type AttendantEventPublisher interface {
	PublishAttendantEvent(ctx context.Context, portal transport.Peer, event RoomAttendantsEvent) error
}

type AttendantsGetter

type AttendantsGetter interface {
	GetAttendants(ctx context.Context, peer transport.Peer) (<-chan RoomAttendantsEvent, error)
}

type MetadataGetter

type MetadataGetter interface {
	GetMetadata(ctx context.Context, peer transport.Peer) (messages.RoomMetadataResponse, error)
}

type PeerRPCAdapter

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

func NewPeerRPCAdapter

func NewPeerRPCAdapter(logger logging.Logger) *PeerRPCAdapter

func (*PeerRPCAdapter) GetAttendants

func (a *PeerRPCAdapter) GetAttendants(ctx context.Context, peer transport.Peer) (<-chan RoomAttendantsEvent, error)

func (*PeerRPCAdapter) GetMetadata

type RoomAttendantsEvent

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

func (RoomAttendantsEvent) Id

func (RoomAttendantsEvent) IsZero

func (e RoomAttendantsEvent) IsZero() bool

func (RoomAttendantsEvent) Typ

type RoomAttendantsEventType

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

func (RoomAttendantsEventType) IsZero

func (t RoomAttendantsEventType) IsZero() bool

type Scanner

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

func NewScanner

func NewScanner(
	metadataGetter MetadataGetter,
	attendantsGetter AttendantsGetter,
	publisher AttendantEventPublisher,
	logger logging.Logger,
) *Scanner

func (Scanner) Run

func (s Scanner) Run(ctx context.Context, peer transport.Peer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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