wsdiscovery

package
v0.0.0-...-2ce4e84 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildProbeMessage

func BuildProbeMessage(types []string) *bytes.Buffer

func ParseProbeResp

func ParseProbeResp(ip string, result *bytes.Buffer) interface{}

func SendUDPMulticast

func SendUDPMulticast(msg *bytes.Buffer, interfaceName string) map[string]*bytes.Buffer

func SendUDPUnicast

func SendUDPUnicast(msg *bytes.Buffer, ip string) map[string]*bytes.Buffer

Types

type Action

type Action struct {
	XMLName xml.Name `xml:"a:Action"`
	Text    string   `xml:",chardata"`
}

type EndpointReferenceType

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

type MessageID

type MessageID struct {
	XMLName xml.Name `xml:"a:MessageID"`
	Text    string   `xml:",chardata"`
}

type Probe

type Probe struct {
	XMLName xml.Name `xml:"Probe"`
	Text    string   `xml:",chardata"`
	Xmlns   string   `xml:"xmlns,attr"`
	Types   struct {
		Text    string `xml:",chardata"`
		XmlnsD  string `xml:"xmlns:d,attr"`
		XmlnsDn string `xml:"xmlns:dn,attr"`
	} `xml:"d:Types"`
}

type ProbeMatchType

type ProbeMatchType struct {
	XMLName           xml.Name              `xml:"ProbeMatch"`
	EndpointReference EndpointReferenceType `xml:"EndpointReference"`
	Types             string                `xml:"Types"`
	Scopes            string                `xml:"Scopes"`
	XAddrs            string                `xml:"XAddrs"`
	MetadataVersion   int                   `xml:"MetadataVersion"`
}

type ProbeMatches

type ProbeMatches struct {
	XMLName    xml.Name         `xml:"ProbeMatches"`
	ProbeMatch []ProbeMatchType `xml:"ProbeMatch"`
	Host       string
}

type ReplyTo

type ReplyTo struct {
	XMLName xml.Name `xml:"a:ReplyTo"`
	Address string   `xml:"a:Address"`
}

type To

type To struct {
	XMLName xml.Name `xml:"a:MessageID"`
	Text    string   `xml:",chardata"`
}

Jump to

Keyboard shortcuts

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