Documentation ¶
Index ¶
- type Envelope
- type Service
- type Sonos
- func (s *Sonos) GetCurrentTrack() (*Track, error)
- func (s *Sonos) GetLEDState()
- func (s *Sonos) GetMute() bool
- func (s *Sonos) GetPositionInfo() error
- func (s *Sonos) GetSessionID()
- func (s *Sonos) GetVolume() error
- func (s *Sonos) ListAvailableServices()
- func (s *Sonos) Next() error
- func (s *Sonos) Pause() error
- func (s *Sonos) Play() error
- func (s *Sonos) PlayURI(uri, meta string) error
- func (s *Sonos) Previous() error
- func (s *Sonos) Seek(timestamp string) error
- func (s *Sonos) SetLEDState(on bool) (bool, error)
- func (s *Sonos) SetMute(mute bool) error
- func (s *Sonos) SetRelativeVolume(adjustment int) error
- func (s *Sonos) SetVolume(desired int) error
- func (s *Sonos) Stop() error
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { TrackDuration string `xml:"Body>GetPositionInfoResponse>TrackDuration"` TrackMetaData string `xml:"Body>GetPositionInfoResponse>TrackMetaData"` TrackURI string `xml:"Body>GetPositionInfoResponse>TrackURI"` }
Envelope : A response Envelope
type Sonos ¶
Sonos : Defines a speaker for the dao package
func (*Sonos) GetCurrentTrack ¶
GetCurrentTrack returns a pointer to a track struct with useful information about the current track
func (*Sonos) ListAvailableServices ¶
func (s *Sonos) ListAvailableServices()
ListAvailableServices does what it says
func (*Sonos) SetLEDState ¶
SetLEDState does what it says
func (*Sonos) SetRelativeVolume ¶
SetRelativeVolume adjusts the volume
Click to show internal directories.
Click to hide internal directories.