Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) GetMapping ¶
GetMapping returns the current mapping if ready, nil otherwise
func (*Manager) GracefullyStop ¶
GracefullyStop cancels the manager and attempts to delete the port mapping. After GracefullyStop returns, the manager cannot be restarted.
type Mapping ¶
type Mapping struct {
Protocol string
InternalPort uint16
ExternalPort uint16
ExternalIP net.IP
NATType string
// TTL is the lease duration. Zero means a permanent lease that never expires.
TTL time.Duration
}
Mapping represents an active NAT port mapping.
Click to show internal directories.
Click to hide internal directories.