Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPrivateIP ¶
IsPrivateIP returns whether or not an IP is within a private range.
Types ¶
type Provider ¶
type Provider interface { ExternalIP() (net.IP, error) AddMapping(protocol string, externalPort, internalPort uint16, expiry time.Duration) error DeleteMapping(protocol string, externalPort, internalPort uint16) (err error) }
Provider represents a barebones generic interface to a NAT traversal network protocol.
Click to show internal directories.
Click to hide internal directories.