playback

package
v0.0.0-...-c66ceb2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller handles management of playback processes

func NewController

func NewController(pm process.Manager) *Controller

NewController returns a new playback controller instance

func (*Controller) Start

func (c *Controller) Start(r *http.Request, req *playback.Params, res *Status) error

Start a playback with either a song or a setlist

func (*Controller) Status

func (c *Controller) Status(r *http.Request, req *api.IDBody, res *Status) error

Status returns the current status of a playback

func (*Controller) Stop

func (c *Controller) Stop(r *http.Request, req *api.IDBody, res *Status) error

Stop a playback

type Status

type Status struct {
	Process process.Status  `json:"process"`
	Params  playback.Params `json:"params"`
}

Status Response of the playback process

Jump to

Keyboard shortcuts

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