Documentation
¶
Index ¶
- type DpwsHost
- type DpwsHosted
- type DpwsThisDevice
- type DpwsThisModel
- type DpwsThisRelationship
- type GetResponseBody
- type MexMetadata
- type MexMetadataSection
- type ProbeBody
- type ProbeMatchBody
- type ReceiveSOAPBody
- type ReceiveSOAPHeader
- type ReceiveSOAPMessage
- type ReceiveWsaEndpointReference
- type ReceiveWsdAppSequence
- type RecevingSOAPBodyTypes
- type SendSOAPBody
- type SendSOAPHeader
- type SendSOAPMessage
- type SendWsaEndpointReference
- type SendWsdAppSequence
- type WsdProbeMatch
- type WsdProbeMatches
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DpwsHost ¶
type DpwsHost struct {
XMLName xml.Name
WsaEndpointReference ReceiveWsaEndpointReference
DpwsTypes string `xml:"Types"`
}
type DpwsHosted ¶
type DpwsHosted struct {
XMLName xml.Name
WsaEndpointReference ReceiveWsaEndpointReference
DpwsTypes string `xml:"Types"`
DpwsServiceID string `xml:"ServiceId"`
}
type DpwsThisDevice ¶
type DpwsThisModel ¶
type DpwsThisRelationship ¶
type DpwsThisRelationship struct {
XMLName xml.Name `xml:"Relationship"`
DpwsHost DpwsHost `xml:"Host"`
DpwsHosted DpwsHosted `xml:"Hosted"`
}
type GetResponseBody ¶
type GetResponseBody struct {
XMLName xml.Name
MexMetadata MexMetadata `xml:"Metadata"`
}
func (*GetResponseBody) GetAllMexLocation ¶
func (g *GetResponseBody) GetAllMexLocation() []string
func (*GetResponseBody) GetMexMetadataSections ¶
func (g *GetResponseBody) GetMexMetadataSections() []MexMetadataSection
type MexMetadata ¶
type MexMetadata struct {
XMLName xml.Name
MexMetadataSections []MexMetadataSection `xml:"MetadataSection"`
}
type MexMetadataSection ¶
type MexMetadataSection struct {
XMLName xml.Name
MexMetadataSectionDialect string `xml:"Dialect,attr"`
DpwsThisModel DpwsThisModel `xml:"ThisModel"`
DpwsThisDevice DpwsThisDevice `xml:"ThisDevice"`
DpwsThisRelationship DpwsThisRelationship `xml:"Relationship"`
MexLocation string `xml:"Location"`
}
func (*MexMetadataSection) GetMexLocation ¶
func (g *MexMetadataSection) GetMexLocation() string
type ProbeMatchBody ¶
type ProbeMatchBody struct {
XMLName xml.Name
WsdProbeMatches WsdProbeMatches `xml:"ProbeMatches"`
}
func (*ProbeMatchBody) GetEndpointReferenceAddress ¶
func (p *ProbeMatchBody) GetEndpointReferenceAddress() string
func (*ProbeMatchBody) GetMetadataVersion ¶
func (p *ProbeMatchBody) GetMetadataVersion() string
func (*ProbeMatchBody) GetScopes ¶
func (p *ProbeMatchBody) GetScopes() string
func (*ProbeMatchBody) GetTypes ¶
func (p *ProbeMatchBody) GetTypes() string
func (*ProbeMatchBody) GetXAddrs ¶
func (p *ProbeMatchBody) GetXAddrs() string
type ReceiveSOAPBody ¶
type ReceiveSOAPHeader ¶
type ReceiveSOAPMessage ¶
type ReceiveSOAPMessage struct {
XMLName xml.Name `xml:"Envelope"`
SOAPHeader ReceiveSOAPHeader `xml:"Header"`
SOAPBody ReceiveSOAPBody `xml:"Body"`
}
func XMLUnmarshal ¶
func XMLUnmarshal[T RecevingSOAPBodyTypes](data []byte) (ReceiveSOAPMessage, error)
type ReceiveWsdAppSequence ¶
type RecevingSOAPBodyTypes ¶
type RecevingSOAPBodyTypes interface {
ProbeBody | ProbeMatchBody | GetResponseBody
}
type SendSOAPBody ¶
type SendSOAPBody struct {
XMLName xml.Name `xml:"soap12:Body"`
Payload interface{} `xml:",omitempty"`
}
func NewGetSOAPBody ¶
func NewGetSOAPBody() SendSOAPBody
func NewHelloSOAPBody ¶
func NewHelloSOAPBody(ipAddr *net.TCPAddr) SendSOAPBody
func NewProbeSOAPBody ¶
func NewProbeSOAPBody() SendSOAPBody
type SendSOAPHeader ¶
type SendSOAPHeader struct {
XMLName xml.Name `xml:"soap12:Header"`
WsaAction string `xml:"wsa:Action"`
WsaTo string `xml:"wsa:To"`
WsaMessageId string `xml:"wsa:MessageID"`
WsaRelatesTo string `xml:"wsa:RelatesTo,omitempty"`
WsdAppSequence *SendWsdAppSequence `xml:"wsd:AppSequence,omitempty"`
}
func NewGetSOAPHeader ¶
func NewGetSOAPHeader(wsaTo string) SendSOAPHeader
func NewHelloSOAPHeader ¶
func NewHelloSOAPHeader() SendSOAPHeader
func NewProbeSOAPHeader ¶
func NewProbeSOAPHeader() SendSOAPHeader
type SendSOAPMessage ¶
type SendSOAPMessage struct {
XMLName xml.Name `xml:"soap12:Envelope"`
XMLNsSoap12 string `xml:"xmlns:soap12,attr"`
XMLNsWsa string `xml:"xmlns:wsa,attr"`
XMLNsWsd string `xml:"xmlns:wsd,attr"`
XMLNsWse string `xml:"xmlns:wse,attr"`
XMLNsMdpws string `xml:"xmlns:mdpws,attr"`
XMLNsDpws string `xml:"xmlns:dpws,attr"`
XMLNsMsg string `xml:"xmlns:msg,attr"`
XMLNsPm string `xml:"xmlns:pm,attr"`
XMLNsXsi string `xml:"xmlns:xsi,attr"`
XMLNsMex string `xml:"xmlns:mex,attr"`
XMLNsSdc string `xml:"xmlns:sdc,attr"`
SOAPHeader SendSOAPHeader `xml:"soap12:Header,omitempty"`
SOAPBody SendSOAPBody `xml:"soap12:Body,omitempty"`
}
func NewSOAPMessage ¶
func NewSOAPMessage(header SendSOAPHeader, body SendSOAPBody) SendSOAPMessage
func (*SendSOAPMessage) XMLMarshal ¶
func (msg *SendSOAPMessage) XMLMarshal() ([]byte, error)
type SendWsdAppSequence ¶
type WsdProbeMatch ¶
type WsdProbeMatches ¶
type WsdProbeMatches struct {
XMLName xml.Name
WsdProbeMatch WsdProbeMatch `xml:"ProbeMatch"`
}
Click to show internal directories.
Click to hide internal directories.