musicservices

package
v0.0.0-...-cbcd650 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package musicservices is a generated MusicServices package.

Index

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 GetSessionIdArgs struct {
	Xmlns     string `xml:"xmlns:u,attr"`
	ServiceId uint32 `xml:"ServiceId"`
	Username  string `xml:"Username"`
}

type GetSessionIdResponse

type GetSessionIdResponse struct {
	SessionId string `xml:"SessionId"`
}

type ListAvailableServicesArgs

type ListAvailableServicesArgs struct {
	Xmlns string `xml:"xmlns:u,attr"`
}

type ListAvailableServicesResponse

type ListAvailableServicesResponse struct {
	AvailableServiceDescriptorList string `xml:"AvailableServiceDescriptorList"`
	AvailableServiceTypeList       string `xml:"AvailableServiceTypeList"`
	AvailableServiceListVersion    string `xml:"AvailableServiceListVersion"`
}

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) Client

func (s *Service) Client() *http.Client

func (*Service) ControlEndpoint

func (s *Service) ControlEndpoint() *url.URL

func (*Service) EventEndpoint

func (s *Service) EventEndpoint() *url.URL

func (*Service) GetSessionId

func (s *Service) GetSessionId(args *GetSessionIdArgs) (*GetSessionIdResponse, error)

func (*Service) ListAvailableServices

func (s *Service) ListAvailableServices(args *ListAvailableServicesArgs) (*ListAvailableServicesResponse, error)

func (*Service) Location

func (s *Service) Location() *url.URL

func (*Service) ParseEvent

func (zp *Service) ParseEvent(body []byte) []interface{}

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 {
}

type UpnpEvent

type UpnpEvent struct {
	XMLName      xml.Name   `xml:"propertyset"`
	XMLNameSpace string     `xml:"xmlns:e,attr"`
	Properties   []Property `xml:"property"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL