Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + const MappingDuration + var ErrNoMapping = errors.New("mapping not established") + type Mapping interface + Close func() error + ExternalAddr func() (addr ma.Multiaddr, err error) + ExternalPort func() int + InternalAddr func() ma.Multiaddr + InternalPort func() int + NAT func() *NAT + Protocol func() string + type NAT struct + func DiscoverNAT() *NAT + func (nat *NAT) Close() error + func (nat *NAT) ExternalAddrs() []ma.Multiaddr + func (nat *NAT) MappedAddrs() map[ma.Multiaddr]ma.Multiaddr + func (nat *NAT) Mappings() []Mapping + func (nat *NAT) NewMapping(maddr ma.Multiaddr) (Mapping, error) + func (nat *NAT) PortMapAddrs(addrs []ma.Multiaddr) + func (nat *NAT) Process() goprocess.Process + type Notifiee interface + MappingChanged func(nat *NAT, m Mapping, oldport int, newport int) + MappingFailed func(nat *NAT, m Mapping, oldport int, err error) + MappingSuccess func(nat *NAT, m Mapping) + type Notifier struct + func (n *Notifier) Notify(notifiee Notifiee) + func (n *Notifier) StopNotify(notifiee Notifiee)