Documentation ¶
Overview ¶
Package musicservices is a generated MusicServices package.
Index ¶
- Constants
- type GetSessionIdArgs
- type GetSessionIdResponse
- type ListAvailableServicesArgs
- type ListAvailableServicesResponse
- type Property
- type Service
- func (s *Service) Client() *http.Client
- func (s *Service) ControlEndpoint() *url.URL
- func (s *Service) EventEndpoint() *url.URL
- func (s *Service) GetSessionId(args *GetSessionIdArgs) (*GetSessionIdResponse, error)
- func (s *Service) ListAvailableServices(args *ListAvailableServicesArgs) (*ListAvailableServicesResponse, error)
- func (s *Service) Location() *url.URL
- func (zp *Service) ParseEvent(body []byte) []interface{}
- func (s *Service) UpdateAvailableServices(args *UpdateAvailableServicesArgs) (*UpdateAvailableServicesResponse, error)
- type ServiceListVersion
- type ServiceOption
- type UpdateAvailableServicesArgs
- type UpdateAvailableServicesResponse
- type UpnpEvent
Constants ¶
View Source
const ( ServiceURN = "urn:schemas-upnp-org:service:MusicServices: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 GetSessionIdArgs ¶
type GetSessionIdResponse ¶
type GetSessionIdResponse struct {
SessionId string `xml:"SessionId"`
}
type ListAvailableServicesArgs ¶
type ListAvailableServicesArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type Property ¶
type Property struct { XMLName xml.Name `xml:"property"` ServiceListVersion *ServiceListVersion `xml:"ServiceListVersion"` }
type Service ¶
type Service struct { ServiceListVersion *ServiceListVersion // contains filtered or unexported fields }
func NewService ¶
func NewService(opts ...ServiceOption) *Service
func (*Service) ControlEndpoint ¶
func (*Service) EventEndpoint ¶
func (*Service) GetSessionId ¶
func (s *Service) GetSessionId(args *GetSessionIdArgs) (*GetSessionIdResponse, error)
func (*Service) ListAvailableServices ¶
func (s *Service) ListAvailableServices(args *ListAvailableServicesArgs) (*ListAvailableServicesResponse, error)
func (*Service) ParseEvent ¶
func (*Service) UpdateAvailableServices ¶
func (s *Service) UpdateAvailableServices(args *UpdateAvailableServicesArgs) (*UpdateAvailableServicesResponse, error)
type ServiceListVersion ¶
type ServiceListVersion string
type ServiceOption ¶
type ServiceOption func(*Service)
func WithClient ¶
func WithClient(c *http.Client) ServiceOption
func WithLocation ¶
func WithLocation(u *url.URL) ServiceOption
type UpdateAvailableServicesArgs ¶
type UpdateAvailableServicesArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
type UpdateAvailableServicesResponse ¶
type UpdateAvailableServicesResponse struct { }
Click to show internal directories.
Click to hide internal directories.