Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundProcess ¶
type BackgroundProcess struct { DB *data.Manager HistoryTTL time.Duration // PlayTimeline signals a timeline should be played PlayTimeline chan PlayTimelineRequest // StopTimeline signals a running timeline should be stopped StopTimeline chan string // StopAllTimelines signals all running timlines should be stopped StopAllTimelines chan bool // PlayingTimelines tracks currently playing timelines PlayingTimelines timelineProcessMap }
BackgroundProcess encapsulates background processing operations
func (*BackgroundProcess) HandleAndProcess ¶
func (bp *BackgroundProcess) HandleAndProcess(systemctx context.Context)
HandleAndProcess handles system context calls and channel events to play/stop audio
func (*BackgroundProcess) StartTimelinePlay ¶ added in v1.0.37
func (bp *BackgroundProcess) StartTimelinePlay(cx context.Context, req PlayTimelineRequest)
PlayTimeline plays a timeline
type PlayTimelineRequest ¶ added in v1.0.28
Click to show internal directories.
Click to hide internal directories.