Documentation
¶
Overview ¶
Package qplay is a generated QPlay package.
Index ¶
Constants ¶
const ( ServiceURN = "urn:schemas-upnp-org:service:QPlay: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 QPlayAuthArgs ¶
QPlayAuth Argument type.
type QPlayAuthResponse ¶
type QPlayAuthResponse struct {
Code string `xml:"Code"`
MID string `xml:"MID"`
DID string `xml:"DID"`
}
QPlayAuth Response type.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents QPlay service.
func NewService ¶
func NewService(opts ...ServiceOption) *Service
NewService creates a new instance of the QPlay service. You must provide at least a location URL and an HTTP client using the options.
func (*Service) ControlEndpoint ¶
ControlEndpoint returns the control endpoint URL of the service. This is usually a URL relative to the device's base URL.
func (*Service) EventEndpoint ¶
EventEndpoint returns the event endpoint URL of the service. This is usually a URL relative to the device's base URL.
func (*Service) ParseEvent ¶
ParseEvent parses a UPnP event notification and updates the service's state variables accordingly. It returns a slice of updated state variable values.
func (*Service) QPlayAuth ¶
func (s *Service) QPlayAuth(args *QPlayAuthArgs) (*QPlayAuthResponse, error)
QPlayAuth calls the QPlayAuth action on the service.
type ServiceOption ¶
type ServiceOption func(*Service)
func WithClient ¶
func WithClient(c *http.Client) ServiceOption
func WithLocation ¶
func WithLocation(u *url.URL) ServiceOption