Documentation ¶
Overview ¶
dependence for https://github.com/micmonay/UPnP
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { XMLName xml.Name `xml:"action"` Name string `xml:"name"` Arguments []*Argument `xml:"argumentList>argument"` // contains filtered or unexported fields }
Action action
func (*Action) GetArgumentsStateVariable ¶
GetArgumentsStateVariable return argument with name
func (*Action) GetInArguments ¶
GetInArguments return IN argument only
type AllowedValue ¶
AllowedValue value
type AllowedValueRange ¶
type AllowedValueRange struct { XMLName xml.Name `xml:"allowedValueRange"` Minimum string `xml:"minimum"` Maximum string `xml:"maximum"` Step string `xml:"step"` }
AllowedValueRange value range
type Argument ¶
type Argument struct { XMLName xml.Name `xml:"argument"` Name string `xml:"name"` Direction string `xml:"direction"` RelatedStateVariable string `xml:"relatedStateVariable"` }
Argument Argument
type SCPD ¶
type SCPD struct { URL string XMLName xml.Name `xml:"scpd"` Actions []*Action `xml:"actionList>action"` StateVariables []*StateVariable `xml:"serviceStateTable>stateVariable"` }
SCPD service description
func GetDefinitionService ¶
GetDefinitionService get service description
func (*SCPD) GetStateVariable ¶
func (a *SCPD) GetStateVariable(_stateVariable string) *StateVariable
GetStateVariable get variable
func (*SCPD) GetTypeValue ¶
GetTypeValue get type for variable
type StateVariable ¶
type StateVariable struct { XMLName xml.Name `xml:"stateVariable"` SendEvents string `xml:"sendEvents,attr"` Name string `xml:"name"` DataType string `xml:"dataType"` Default string `xml:"defaultValue"` AllowedValues []*AllowedValue `xml:"allowedValueList>allowedValue"` AllowedValueRanges *AllowedValueRange `xml:"allowedValueRange"` // contains filtered or unexported fields }
StateVariable StateVariable
Click to show internal directories.
Click to hide internal directories.