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 AttendantsGetter ¶
type MetadataGetter ¶
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 ¶
func (a *PeerRPCAdapter) GetMetadata(ctx context.Context, peer transport.Peer) (messages.RoomMetadataResponse, error)
type RoomAttendantsEvent ¶
type RoomAttendantsEvent struct {
// contains filtered or unexported fields
}
func MustNewRoomAttendantsEvent ¶
func MustNewRoomAttendantsEvent(typ RoomAttendantsEventType, id refs.Identity) RoomAttendantsEvent
func NewRoomAttendantsEvent ¶
func NewRoomAttendantsEvent(typ RoomAttendantsEventType, id refs.Identity) (RoomAttendantsEvent, error)
func (RoomAttendantsEvent) Id ¶
func (e RoomAttendantsEvent) Id() refs.Identity
func (RoomAttendantsEvent) IsZero ¶
func (e RoomAttendantsEvent) IsZero() bool
func (RoomAttendantsEvent) Typ ¶
func (e RoomAttendantsEvent) Typ() RoomAttendantsEventType
type RoomAttendantsEventType ¶
type RoomAttendantsEventType struct {
// contains filtered or unexported fields
}
func NewRoomAttendantsEventTypeFromRoomAttendantsReponseType ¶
func NewRoomAttendantsEventTypeFromRoomAttendantsReponseType(v messages.RoomAttendantsResponseType) (RoomAttendantsEventType, error)
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
Click to show internal directories.
Click to hide internal directories.