dmx

package
v1.0.42 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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

type PlayTimelineRequest struct {
	ProcessID         string
	RequestedTimeline data.Timeline
}

Jump to

Keyboard shortcuts

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