registry

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreviewInfo added in v0.2.1

type PreviewInfo struct {
	Id       int               `json:"id"`
	Anchor   string            `json:"anchor"`
	RoomName string            `json:"roomName"`
	Platform string            `json:"platform"`
	Url      string            `json:"url"`
	Headers  map[string]string `json:"headers"`
}

type SessionRegistry

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

func Get

func Get() *SessionRegistry

func NewSessionRegistry

func NewSessionRegistry() *SessionRegistry

func (*SessionRegistry) Add

func (r *SessionRegistry) Add(ctx context.Context, liveId int) error

func (*SessionRegistry) AddAll

func (r *SessionRegistry) AddAll(ctx context.Context, liveIds []int)

func (*SessionRegistry) Exists

func (r *SessionRegistry) Exists(sessionId int) bool

func (*SessionRegistry) Get

func (r *SessionRegistry) Get(sessionId int) (*lives.LiveSession, bool)

func (*SessionRegistry) GetPreviewInfo added in v0.2.1

func (r *SessionRegistry) GetPreviewInfo(sessionId int) *PreviewInfo

func (*SessionRegistry) GetPreviewList added in v0.2.1

func (r *SessionRegistry) GetPreviewList() []*PreviewInfo

func (*SessionRegistry) IsRecording

func (r *SessionRegistry) IsRecording(sessionId int) bool

func (*SessionRegistry) RecordingCount

func (r *SessionRegistry) RecordingCount() int

func (*SessionRegistry) Remove

func (r *SessionRegistry) Remove(ctx context.Context, sessionId int) error

func (*SessionRegistry) StopAll added in v0.0.2

func (r *SessionRegistry) StopAll(ctx context.Context)

Jump to

Keyboard shortcuts

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