Documentation
¶
Index ¶
- type Device
- type DeviceList
- type Envelope
- type ExternalIPAddress
- type ExternalIPAddressResponse
- type Root
- type Service
- type ServiceList
- type SoapBody
- type UPnPNAT
- func (n *UPnPNAT) AddPortMapping(protocol string, externalPort, internalPort int, description string, ...) (mappedExternalPort int, err error)
- func (n *UPnPNAT) DeletePortMapping(protocol string, externalPort, internalPort int) (err error)
- func (n *UPnPNAT) GetExternalAddress() (addr net.IP, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { XMLName xml.Name `xml:"device"` DeviceType string `xml:"deviceType"` DeviceList DeviceList `xml:"deviceList"` ServiceList ServiceList `xml:"serviceList"` }
type DeviceList ¶
type DeviceList struct {
Device []Device `xml:"device"`
}
type ExternalIPAddress ¶
type ServiceList ¶
type ServiceList struct {
Service []Service `xml:"service"`
}
type SoapBody ¶
type SoapBody struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Body"` ExternalIP *ExternalIPAddressResponse }
type UPnPNAT ¶
type UPnPNAT struct {
// contains filtered or unexported fields
}
UPnPNAT Just enough UPnP to be able to forward ports
func (*UPnPNAT) AddPortMapping ¶
func (*UPnPNAT) DeletePortMapping ¶
Click to show internal directories.
Click to hide internal directories.