cast

package
v0.0.0-...-8444db5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDeviceNotFound = errors.New("device not found")

Functions

func CastModuleFactory

func CastModuleFactory() app.BackendModuleFactory

Types

type Device

type Device struct {
	UUID string
	Host net.IP
	Port int
	Name string
}

type DeviceStatus

type DeviceStatus struct {
	CurrentApp struct {
		ID          string
		DisplayName string
		StatusText  string
	}
	Volume struct {
		Level float64
		Muted bool
	}
}

type Module

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

func (*Module) Export

func (m *Module) Export(export *goja.Object)

func (*Module) Name

func (m *Module) Name() string

type Plugin

type Plugin struct{}

func NewPlugin

func NewPlugin() *Plugin

func (*Plugin) HookBackendModules

func (p *Plugin) HookBackendModules(ctx context.Context, factories []app.BackendModuleFactory) ([]app.BackendModuleFactory, error)

func (*Plugin) PluginName

func (p *Plugin) PluginName() string

func (*Plugin) PluginVersion

func (p *Plugin) PluginVersion() string

Jump to

Keyboard shortcuts

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