Versions in this module Expand all Collapse all v0 v0.1.0 Dec 19, 2023 Changes in this version + var ErrNoExternalAddress = errors.New("no external address") + var ErrNoInternalAddress = errors.New("no internal address") + var ErrNoNATFound = errors.New("no NAT found") + func DiscoverNATs(ctx context.Context) <-chan NAT + type NAT interface + AddPortMapping func(ctx context.Context, protocol string, internalPort int, description string, ...) (mappedExternalPort int, err error) + DeletePortMapping func(ctx context.Context, protocol string, internalPort int) (err error) + GetDeviceAddress func() (addr net.IP, err error) + GetExternalAddress func() (addr net.IP, err error) + GetInternalAddress func() (addr net.IP, err error) + Type func() string + func DiscoverGateway(ctx context.Context) (NAT, error)