Documentation ¶
Index ¶
- func GetActiveViewers() map[string]*models.Viewer
- func GetBroadcaster() *models.Broadcaster
- func GetCurrentBroadcast() *models.CurrentBroadcast
- func GetStatus() models.Status
- func IsStreamConnected() bool
- func RemoveChatClient(clientID string)
- func SetStreamAsDisconnected()
- func SetViewerActive(viewer *models.Viewer)
- func Start() error
- func StartOfflineCleanupTimer()
- func StopOfflineCleanupTimer()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetActiveViewers ¶ added in v0.0.12
GetActiveViewers will return the active viewers.
func GetBroadcaster ¶
func GetBroadcaster() *models.Broadcaster
GetBroadcaster will return the details of the currently active broadcaster.
func GetCurrentBroadcast ¶ added in v0.0.6
func GetCurrentBroadcast() *models.CurrentBroadcast
GetCurrentBroadcast will return the currently active broadcast.
func IsStreamConnected ¶
func IsStreamConnected() bool
IsStreamConnected checks if the stream is connected or not.
func RemoveChatClient ¶ added in v0.0.8
func RemoveChatClient(clientID string)
RemoveChatClient removes a client from the active clients record.
func SetStreamAsDisconnected ¶
func SetStreamAsDisconnected()
SetStreamAsDisconnected sets the stream as disconnected.
func SetViewerActive ¶ added in v0.0.12
SetViewerActive sets a client as active and connected.
func StartOfflineCleanupTimer ¶
func StartOfflineCleanupTimer()
StartOfflineCleanupTimer will fire a cleanup after n minutes being disconnected.
func StopOfflineCleanupTimer ¶
func StopOfflineCleanupTimer()
StopOfflineCleanupTimer will stop the previous cleanup timer.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.