Documentation ¶
Index ¶
Constants ¶
View Source
const (
SCPDXMLNamespace = "urn:schemas-upnp-org:service-1-0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowedValueRange ¶
type Argument ¶
type SCPD ¶
type SCPD struct { XMLName xml.Name `xml:"scpd"` ConfigId string `xml:"configId,attr"` SpecVersion SpecVersion `xml:"specVersion"` Actions []Action `xml:"actionList>action"` StateVariables []StateVariable `xml:"serviceStateTable>stateVariable"` }
SCPD is the service description as described by section 2.5 "Service description" in http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf
func (*SCPD) Clean ¶
func (scpd *SCPD) Clean()
Clean attempts to remove stray whitespace etc. in the structure. It seems unfortunately common for stray whitespace to be present in SCPD documents, this method attempts to make it easy to clean them out.
func (*SCPD) GetStateVariable ¶
func (scpd *SCPD) GetStateVariable(variable string) *StateVariable
func (*SCPD) OrderedActions ¶
type SpecVersion ¶
SpecVersion is part of a SCPD document, describes the version of the specification that the data adheres to.
type StateVariable ¶
type StateVariable struct { Name string `xml:"name"` SendEvents string `xml:"sendEvents,attr"` // yes|no Multicast string `xml:"multicast,attr"` // yes|no DataType DataType `xml:"dataType"` DefaultValue string `xml:"defaultValue"` AllowedValueRange *AllowedValueRange `xml:"allowedValueRange"` AllowedValues []string `xml:"allowedValueList>allowedValue"` }
Click to show internal directories.
Click to hide internal directories.