Documentation
¶
Index ¶
- func GetBroadcaster() *models.Broadcaster
- func GetCurrentBroadcast() *models.CurrentBroadcast
- func GetStatus() models.Status
- func IsStreamConnected() bool
- func RemoveChatClient(clientID string)
- func SetStreamAsDisconnected()
- func SetViewerIDActive(id string)
- func Start() error
- func StartOfflineCleanupTimer()
- func StopOfflineCleanupTimer()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBroadcaster ¶
func GetBroadcaster() *models.Broadcaster
GetBroadcaster will return the details of the currently active broadcaster.
func GetCurrentBroadcast ¶
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 ¶
func RemoveChatClient(clientID string)
RemoveChatClient removes a client from the active clients record.
func SetStreamAsDisconnected ¶
func SetStreamAsDisconnected()
SetStreamAsDisconnected sets the stream as disconnected.
func SetViewerIDActive ¶
func SetViewerIDActive(id string)
SetViewerIDActive 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.
Click to show internal directories.
Click to hide internal directories.