controller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 10 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 interface {
	Speak(text string, language string) error
	Play(url string) error
	Stop() error
	GetStatus() (*controllers.MediaStatusResponse, error)
	SetVolume(vol string) error
	Close()
	CloseEvent()
	RunEventReceiver(notify chan struct{})
	DebugStatus(status *controllers.MediaStatusResponse)
}

Controller interface

func NewController

func NewController(
	ctx context.Context,
	client *cast.Client,
	logger *zap.Logger,
) Controller

NewController returns Controller

Jump to

Keyboard shortcuts

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