Versions in this module Expand all Collapse all v0 v0.0.1 Jan 25, 2016 Changes in this version + const RECOMMENDED_MAPPING_LIFETIME_SECONDS + type AddPortMappingResult struct + InternalPort uint16 + MappedExternalPort uint16 + PortMappingLifetimeInSeconds uint32 + SecondsSinceStartOfEpoc uint32 + type Client struct + func NewClient(gateway net.IP) (nat *Client) + func (n *Client) AddPortMapping(protocol string, internalPort, requestedExternalPort int, lifetime int) (result *AddPortMappingResult, err error) + func (n *Client) GetExternalAddress() (result *GetExternalAddressResult, err error) + type GetExternalAddressResult struct + ExternalIPAddress [4]byte + SecondsSinceStartOfEpoc uint32