upnp

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetPresetResponse

type GetPresetResponse struct {
	Name string
	URL  string
}

type Reciva added in v0.10.1

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

func Discover

func Discover() ([]Reciva, error)

func (*Reciva) GetAudioSources added in v0.10.1

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

func (*Reciva) GetEventURL added in v0.10.1

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

func (*Reciva) GetModelName added in v0.10.1

func (r *Reciva) GetModelName() string

func (*Reciva) GetModelNumber added in v0.10.1

func (r *Reciva) GetModelNumber() string

func (*Reciva) GetName added in v0.10.1

func (r *Reciva) GetName() string

func (*Reciva) GetNumberOfPresets added in v0.10.1

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

func (*Reciva) GetPreset added in v0.10.1

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

func (*Reciva) GetUUID added in v0.10.1

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

func (*Reciva) GetVolume added in v0.10.1

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

func (*Reciva) PlayPreset added in v0.10.1

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

func (*Reciva) SetAudioSource added in v0.10.1

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

func (*Reciva) SetPowerState added in v0.10.1

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

func (*Reciva) SetVolume added in v0.10.1

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