core

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActiveViewers added in v0.0.12

func GetActiveViewers() map[string]*models.Viewer

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 GetStatus

func GetStatus() models.Status

GetStatus gets the status of the system.

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

func SetViewerActive(viewer *models.Viewer)

SetViewerActive sets a client as active and connected.

func Start

func Start() error

Start starts up the core processing.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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