Documentation ¶
Overview ¶
Package queue is a generated Queue package.
Index ¶
- Constants
- type AddMultipleURIsArgs
- type AddMultipleURIsResponse
- type AddURIArgs
- type AddURIResponse
- type AttachQueueArgs
- type AttachQueueResponse
- type BackupArgs
- type BackupResponse
- type BrowseArgs
- type BrowseResponse
- type CreateQueueArgs
- type CreateQueueResponse
- type LastChange
- type Property
- type RemoveAllTracksArgs
- type RemoveAllTracksResponse
- type RemoveTrackRangeArgs
- type RemoveTrackRangeResponse
- type ReorderTracksArgs
- type ReorderTracksResponse
- type ReplaceAllTracksArgs
- type ReplaceAllTracksResponse
- type SaveAsSonosPlaylistArgs
- type SaveAsSonosPlaylistResponse
- type Service
- func (s *Service) AddMultipleURIs(args *AddMultipleURIsArgs) (*AddMultipleURIsResponse, error)
- func (s *Service) AddURI(args *AddURIArgs) (*AddURIResponse, error)
- func (s *Service) AttachQueue(args *AttachQueueArgs) (*AttachQueueResponse, error)
- func (s *Service) Backup(args *BackupArgs) (*BackupResponse, error)
- func (s *Service) Browse(args *BrowseArgs) (*BrowseResponse, error)
- func (s *Service) Client() *http.Client
- func (s *Service) ControlEndpoint() *url.URL
- func (s *Service) CreateQueue(args *CreateQueueArgs) (*CreateQueueResponse, error)
- func (s *Service) EventEndpoint() *url.URL
- func (s *Service) Location() *url.URL
- func (zp *Service) ParseEvent(body []byte) []interface{}
- func (s *Service) RemoveAllTracks(args *RemoveAllTracksArgs) (*RemoveAllTracksResponse, error)
- func (s *Service) RemoveTrackRange(args *RemoveTrackRangeArgs) (*RemoveTrackRangeResponse, error)
- func (s *Service) ReorderTracks(args *ReorderTracksArgs) (*ReorderTracksResponse, error)
- func (s *Service) ReplaceAllTracks(args *ReplaceAllTracksArgs) (*ReplaceAllTracksResponse, error)
- func (s *Service) SaveAsSonosPlaylist(args *SaveAsSonosPlaylistArgs) (*SaveAsSonosPlaylistResponse, error)
- type ServiceOption
- type UpnpEvent
Constants ¶
View Source
const ( ServiceURN = "urn:schemas-upnp-org:service:Queue:1" EncodingSchema = "http://schemas.xmlsoap.org/soap/encoding/" EnvelopeSchema = "http://schemas.xmlsoap.org/soap/envelope/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMultipleURIsArgs ¶
type AddMultipleURIsArgs struct { Xmlns string `xml:"xmlns:u,attr"` QueueID uint32 `xml:"QueueID"` UpdateID uint32 `xml:"UpdateID"` ContainerURI string `xml:"ContainerURI"` ContainerMetaData string `xml:"ContainerMetaData"` DesiredFirstTrackNumberEnqueued uint32 `xml:"DesiredFirstTrackNumberEnqueued"` EnqueueAsNext bool `xml:"EnqueueAsNext"` NumberOfURIs uint32 `xml:"NumberOfURIs"` EnqueuedURIsAndMetaData string `xml:"EnqueuedURIsAndMetaData"` }
type AddMultipleURIsResponse ¶
type AddURIArgs ¶
type AddURIArgs struct { Xmlns string `xml:"xmlns:u,attr"` QueueID uint32 `xml:"QueueID"` UpdateID uint32 `xml:"UpdateID"` EnqueuedURI string `xml:"EnqueuedURI"` EnqueuedURIMetaData string `xml:"EnqueuedURIMetaData"` DesiredFirstTrackNumberEnqueued uint32 `xml:"DesiredFirstTrackNumberEnqueued"` EnqueueAsNext bool `xml:"EnqueueAsNext"` }
type AddURIResponse ¶
type AttachQueueArgs ¶
type AttachQueueResponse ¶
type BackupArgs ¶
type BackupArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type BackupResponse ¶
type BackupResponse struct { }
type BrowseArgs ¶
type BrowseResponse ¶
type CreateQueueArgs ¶
type CreateQueueResponse ¶
type CreateQueueResponse struct {
QueueID uint32 `xml:"QueueID"`
}
type LastChange ¶
type LastChange string
type Property ¶
type Property struct { XMLName xml.Name `xml:"property"` LastChange *LastChange `xml:"LastChange"` }
type RemoveAllTracksArgs ¶
type RemoveAllTracksResponse ¶
type RemoveAllTracksResponse struct {
NewUpdateID uint32 `xml:"NewUpdateID"`
}
type RemoveTrackRangeArgs ¶
type RemoveTrackRangeResponse ¶
type RemoveTrackRangeResponse struct {
NewUpdateID uint32 `xml:"NewUpdateID"`
}
type ReorderTracksArgs ¶
type ReorderTracksResponse ¶
type ReorderTracksResponse struct {
NewUpdateID uint32 `xml:"NewUpdateID"`
}
type ReplaceAllTracksArgs ¶
type ReplaceAllTracksArgs struct { Xmlns string `xml:"xmlns:u,attr"` QueueID uint32 `xml:"QueueID"` UpdateID uint32 `xml:"UpdateID"` ContainerURI string `xml:"ContainerURI"` ContainerMetaData string `xml:"ContainerMetaData"` CurrentTrackIndex uint32 `xml:"CurrentTrackIndex"` NewCurrentTrackIndices string `xml:"NewCurrentTrackIndices"` NumberOfURIs uint32 `xml:"NumberOfURIs"` EnqueuedURIsAndMetaData string `xml:"EnqueuedURIsAndMetaData"` }
type SaveAsSonosPlaylistArgs ¶
type SaveAsSonosPlaylistResponse ¶
type SaveAsSonosPlaylistResponse struct {
AssignedObjectID string `xml:"AssignedObjectID"`
}
type Service ¶
type Service struct { LastChange *LastChange // contains filtered or unexported fields }
func NewService ¶
func NewService(opts ...ServiceOption) *Service
func (*Service) AddMultipleURIs ¶
func (s *Service) AddMultipleURIs(args *AddMultipleURIsArgs) (*AddMultipleURIsResponse, error)
func (*Service) AddURI ¶
func (s *Service) AddURI(args *AddURIArgs) (*AddURIResponse, error)
func (*Service) AttachQueue ¶
func (s *Service) AttachQueue(args *AttachQueueArgs) (*AttachQueueResponse, error)
func (*Service) Backup ¶
func (s *Service) Backup(args *BackupArgs) (*BackupResponse, error)
func (*Service) Browse ¶
func (s *Service) Browse(args *BrowseArgs) (*BrowseResponse, error)
func (*Service) ControlEndpoint ¶
func (*Service) CreateQueue ¶
func (s *Service) CreateQueue(args *CreateQueueArgs) (*CreateQueueResponse, error)
func (*Service) EventEndpoint ¶
func (*Service) ParseEvent ¶
func (*Service) RemoveAllTracks ¶
func (s *Service) RemoveAllTracks(args *RemoveAllTracksArgs) (*RemoveAllTracksResponse, error)
func (*Service) RemoveTrackRange ¶
func (s *Service) RemoveTrackRange(args *RemoveTrackRangeArgs) (*RemoveTrackRangeResponse, error)
func (*Service) ReorderTracks ¶
func (s *Service) ReorderTracks(args *ReorderTracksArgs) (*ReorderTracksResponse, error)
func (*Service) ReplaceAllTracks ¶
func (s *Service) ReplaceAllTracks(args *ReplaceAllTracksArgs) (*ReplaceAllTracksResponse, error)
func (*Service) SaveAsSonosPlaylist ¶
func (s *Service) SaveAsSonosPlaylist(args *SaveAsSonosPlaylistArgs) (*SaveAsSonosPlaylistResponse, error)
type ServiceOption ¶
type ServiceOption func(*Service)
func WithClient ¶
func WithClient(c *http.Client) ServiceOption
func WithLocation ¶
func WithLocation(u *url.URL) ServiceOption
Click to show internal directories.
Click to hide internal directories.