models

package
v0.0.0-...-b56a7af Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 DpwsThisDevice struct {
	XMLName             xml.Name `xml:"ThisDevice"`
	DpwsFriendlyName    string   `xml:"FriendlyName"`
	DpwsFirmwareVersion string   `xml:"FirmwareVersion"`
	DpwsSerialNumber    string   `xml:"SerialNumber"`
}

type DpwsThisModel

type DpwsThisModel struct {
	XMLName             xml.Name `xml:"ThisModel"`
	DpwsManufacturer    string   `xml:"Manufacturer"`
	DpwsManufacturerUrl string   `xml:"ManufacturerUrl"`
	DpwsModelName       string   `xml:"ModelName"`
	DpwsModelUrl        string   `xml:"ModelNumber"`
	DpwsPresentationUrl string   `xml:"PresentationUrl"`
}

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 ProbeBody

type ProbeBody struct {
	XMLName   xml.Name `xml:"Probe"`
	WsdType   string   `xml:"Types"`
	WsdScopes string   `xml:"Scopes"`
}

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 ReceiveSOAPBody struct {
	XMLName       xml.Name    `xml:"Body"`
	RawXMLPayload []byte      `xml:",innerxml"`
	Payload       interface{} `xml:",omitempty"`
}

type ReceiveSOAPHeader

type ReceiveSOAPHeader struct {
	XMLName        xml.Name               `xml:"Header"`
	WsaAction      string                 `xml:"Action"`
	WsaTo          string                 `xml:"To"`
	WsaMessageId   string                 `xml:"MessageID"`
	WsaRelatesTo   string                 `xml:"RelatesTo,omitempty"`
	WsdAppSequence *ReceiveWsdAppSequence `xml:"AppSequence,omitempty"`
}

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 ReceiveWsaEndpointReference

type ReceiveWsaEndpointReference struct {
	XMLName    xml.Name `xml:"EndpointReference"`
	WsaAddress string   `xml:"Address"`
}

type ReceiveWsdAppSequence

type ReceiveWsdAppSequence struct {
	XMLName       xml.Name `xml:"AppSequence"`
	InstanceId    string   `xml:",attr"`
	MessageNumber string   `xml:",attr"`
}

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 SendWsaEndpointReference

type SendWsaEndpointReference struct {
	XMLName    xml.Name `xml:"wsa:EndpointReference"`
	WsaAddress string   `xml:"wsa:Address"`
}

type SendWsdAppSequence

type SendWsdAppSequence struct {
	XMLName       xml.Name `xml:"wsd:AppSequence"`
	InstanceId    string   `xml:",attr"`
	MessageNumber string   `xml:",attr"`
}

type WsdProbeMatch

type WsdProbeMatch struct {
	XMLName              xml.Name
	WsaEndpointReference ReceiveWsaEndpointReference
	WsdTypes             string `xml:"Types"`
	WsdScopes            string `xml:"Scopes"`
	WsdXAddrs            string `xml:"XAddrs"`
	WsdMetadataVersion   string `xml:"MetadataVersion"`
}

type WsdProbeMatches

type WsdProbeMatches struct {
	XMLName       xml.Name
	WsdProbeMatch WsdProbeMatch `xml:"ProbeMatch"`
}

Jump to

Keyboard shortcuts

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