Documentation
¶
Index ¶
- type PreviewInfo
- type SessionRegistry
- func (r *SessionRegistry) Add(ctx context.Context, liveId int) error
- func (r *SessionRegistry) AddAll(ctx context.Context, liveIds []int)
- func (r *SessionRegistry) Exists(sessionId int) bool
- func (r *SessionRegistry) Get(sessionId int) (*lives.LiveSession, bool)
- func (r *SessionRegistry) GetPreviewInfo(sessionId int) *PreviewInfo
- func (r *SessionRegistry) GetPreviewList() []*PreviewInfo
- func (r *SessionRegistry) IsLiving(sessionId int) bool
- func (r *SessionRegistry) IsRecording(sessionId int) bool
- func (r *SessionRegistry) RecordingCount() int
- func (r *SessionRegistry) Remove(ctx context.Context, sessionId int) error
- func (r *SessionRegistry) StopAll(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreviewInfo ¶ added in v0.2.1
type SessionRegistry ¶
type SessionRegistry struct {
// contains filtered or unexported fields
}
func Get ¶
func Get() *SessionRegistry
func NewSessionRegistry ¶
func NewSessionRegistry() *SessionRegistry
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) IsLiving ¶ added in v0.2.2
func (r *SessionRegistry) IsLiving(sessionId int) bool
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)
Click to show internal directories.
Click to hide internal directories.