upnp

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackgroundControlPoint

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

func NewBackgroundControlPoint

func NewBackgroundControlPoint(controlPoint upnpsub.ControlPoint) *BackgroundControlPoint

func (*BackgroundControlPoint) Background

func (bcp *BackgroundControlPoint) Background(ctx context.Context, doneC chan<- struct{})

type GetPresetResponse

type GetPresetResponse struct {
	Name string
	URL  string
}

type Reciva

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

func Discover

func Discover(ctx context.Context) ([]Reciva, error)

func (*Reciva) GetAudioSources

func (r *Reciva) GetAudioSources(ctx context.Context) ([]string, error)

func (*Reciva) GetEventURL

func (r *Reciva) GetEventURL() url.URL

func (*Reciva) GetModelName

func (r *Reciva) GetModelName() string

func (*Reciva) GetModelNumber

func (r *Reciva) GetModelNumber() string

func (*Reciva) GetName

func (r *Reciva) GetName() string

func (*Reciva) GetNumberOfPresets

func (r *Reciva) GetNumberOfPresets(ctx context.Context) (int, error)

func (*Reciva) GetPreset

func (r *Reciva) GetPreset(ctx context.Context, num int) (*GetPresetResponse, error)

func (*Reciva) GetUUID

func (r *Reciva) GetUUID() (string, error)

func (*Reciva) GetVolume

func (r *Reciva) GetVolume(ctx context.Context) (int, error)

func (*Reciva) PlayPreset

func (r *Reciva) PlayPreset(ctx context.Context, preset int) error

func (*Reciva) SetAudioSource

func (r *Reciva) SetAudioSource(ctx context.Context, audioSource string) error

func (*Reciva) SetPowerState

func (r *Reciva) SetPowerState(ctx context.Context, power bool) error

func (*Reciva) SetVolume

func (r *Reciva) SetVolume(ctx context.Context, volume int) error

Jump to

Keyboard shortcuts

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