Documentation
¶
Index ¶
- 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) IsRecording(sessionId int) bool
- func (r *SessionRegistry) RecordingCount() int
- func (r *SessionRegistry) Remove(ctx context.Context, sessionId int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) IsRecording ¶
func (r *SessionRegistry) IsRecording(sessionId int) bool
func (*SessionRegistry) RecordingCount ¶
func (r *SessionRegistry) RecordingCount() int
Click to show internal directories.
Click to hide internal directories.