Documentation
¶
Overview ¶
Package connectionmanager is a generated ConnectionManager package.
Index ¶
- Constants
- type ConnectionStatusEnum
- type CurrentConnectionIDs
- type DirectionEnum
- type GetCurrentConnectionIDsArgs
- type GetCurrentConnectionIDsResponse
- type GetCurrentConnectionInfoArgs
- type GetCurrentConnectionInfoResponse
- type GetProtocolInfoArgs
- type GetProtocolInfoResponse
- 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) GetCurrentConnectionIDs(args *GetCurrentConnectionIDsArgs) (*GetCurrentConnectionIDsResponse, error)
- func (s *Service) GetCurrentConnectionInfo(args *GetCurrentConnectionInfoArgs) (*GetCurrentConnectionInfoResponse, error)
- func (s *Service) GetProtocolInfo(args *GetProtocolInfoArgs) (*GetProtocolInfoResponse, error)
- func (s *Service) Location() *url.URL
- func (zp *Service) ParseEvent(body []byte) []interface{}
- type ServiceOption
- type SinkProtocolInfo
- type SourceProtocolInfo
- type UpnpEvent
Constants ¶
const ( ServiceURN = "urn:schemas-upnp-org:service:ConnectionManager: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 ConnectionStatusEnum ¶
type ConnectionStatusEnum string
Enumerations
const ( ConnectionStatus_OK ConnectionStatusEnum = "OK" ConnectionStatus_ContentFormatMismatch ConnectionStatusEnum = "ContentFormatMismatch" ConnectionStatus_InsufficientBandwidth ConnectionStatusEnum = "InsufficientBandwidth" ConnectionStatus_UnreliableChannel ConnectionStatusEnum = "UnreliableChannel" ConnectionStatus_Unknown ConnectionStatusEnum = "Unknown" )
type CurrentConnectionIDs ¶
type CurrentConnectionIDs string
type DirectionEnum ¶
type DirectionEnum string
const ( Direction_Input DirectionEnum = "Input" Direction_Output DirectionEnum = "Output" )
type GetCurrentConnectionIDsArgs ¶
type GetCurrentConnectionIDsArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
GetCurrentConnectionIDs Argument type.
type GetCurrentConnectionIDsResponse ¶
type GetCurrentConnectionIDsResponse struct {
ConnectionIDs string `xml:"ConnectionIDs"`
}
GetCurrentConnectionIDs Response type.
type GetCurrentConnectionInfoArgs ¶
type GetCurrentConnectionInfoArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
ConnectionID int32 `xml:"ConnectionID"`
}
GetCurrentConnectionInfo Argument type.
type GetCurrentConnectionInfoResponse ¶
type GetCurrentConnectionInfoResponse struct {
RcsID int32 `xml:"RcsID"`
AVTransportID int32 `xml:"AVTransportID"`
ProtocolInfo string `xml:"ProtocolInfo"`
PeerConnectionManager string `xml:"PeerConnectionManager"`
PeerConnectionID int32 `xml:"PeerConnectionID"`
Direction DirectionEnum `xml:"Direction"`
Status ConnectionStatusEnum `xml:"Status"`
}
GetCurrentConnectionInfo Response type.
type GetProtocolInfoArgs ¶
type GetProtocolInfoArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
}
GetProtocolInfo Argument type.
type GetProtocolInfoResponse ¶
GetProtocolInfo Response type.
type Property ¶
type Property struct {
XMLName xml.Name `xml:"property"`
SourceProtocolInfo *SourceProtocolInfo `xml:"SourceProtocolInfo"`
SinkProtocolInfo *SinkProtocolInfo `xml:"SinkProtocolInfo"`
CurrentConnectionIDs *CurrentConnectionIDs `xml:"CurrentConnectionIDs"`
}
Property represents a single property in a UPnP event notification.
type Service ¶
type Service struct {
SourceProtocolInfo *SourceProtocolInfo
SinkProtocolInfo *SinkProtocolInfo
CurrentConnectionIDs *CurrentConnectionIDs
// contains filtered or unexported fields
}
Service represents ConnectionManager service.
func NewService ¶
func NewService(opts ...ServiceOption) *Service
NewService creates a new instance of the ConnectionManager 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) GetCurrentConnectionIDs ¶
func (s *Service) GetCurrentConnectionIDs(args *GetCurrentConnectionIDsArgs) (*GetCurrentConnectionIDsResponse, error)
GetCurrentConnectionIDs calls the GetCurrentConnectionIDs action on the service.
func (*Service) GetCurrentConnectionInfo ¶
func (s *Service) GetCurrentConnectionInfo(args *GetCurrentConnectionInfoArgs) (*GetCurrentConnectionInfoResponse, error)
GetCurrentConnectionInfo calls the GetCurrentConnectionInfo action on the service.
func (*Service) GetProtocolInfo ¶
func (s *Service) GetProtocolInfo(args *GetProtocolInfoArgs) (*GetProtocolInfoResponse, error)
GetProtocolInfo calls the GetProtocolInfo action on the service.
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.
type ServiceOption ¶
type ServiceOption func(*Service)
func WithClient ¶
func WithClient(c *http.Client) ServiceOption
func WithLocation ¶
func WithLocation(u *url.URL) ServiceOption
type SinkProtocolInfo ¶
type SinkProtocolInfo string