cmd

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DeviceType = `urn:schemas-upnp-org:device:MediaRenderer:1`

Variables

This section is empty.

Functions

func DiscoverRunner

func DiscoverRunner(ctx context.Context) error

func NewRootCommand

func NewRootCommand() *cobra.Command

Types

type HomieBridge

type HomieBridge struct {
	Broker   *homie.Broker
	Speakers map[string]raumfeld.Speaker
}

func (*HomieBridge) HandleBrokerAction

func (b *HomieBridge) HandleBrokerAction(nodeID, propertyID, value string) error

func (*HomieBridge) OnMuteChange

func (b *HomieBridge) OnMuteChange(id string, muted bool, channel string)

func (*HomieBridge) OnPowerStateChange

func (b *HomieBridge) OnPowerStateChange(id, state string)

func (*HomieBridge) OnVolumeChange

func (b *HomieBridge) OnVolumeChange(id string, volume int, channel string)

func (*HomieBridge) PublishHomieDefinitions

func (b *HomieBridge) PublishHomieDefinitions(ctx context.Context) error

func (*HomieBridge) Run

func (b *HomieBridge) Run(ctx context.Context) error

type HomieBridgeRunner

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

func (*HomieBridgeRunner) Bind

func (r *HomieBridgeRunner) Bind(cmd *cobra.Command) error

func (*HomieBridgeRunner) Run

func (r *HomieBridgeRunner) Run(ctx context.Context) error

type RunnerFunc

type RunnerFunc func(ctx context.Context) error

func (RunnerFunc) Bind

func (r RunnerFunc) Bind(cmd *cobra.Command) error

func (RunnerFunc) Run

func (r RunnerFunc) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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