nat

package
v2.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map(stop <-chan struct{}, protocol string, lPort, ePort int, desc string, lifetime time.Duration, callback func(*Addr))

func New

func New() (clt nat.NAT, err error)

Types

type Addr

type Addr struct {
	Proto string
	IP    net.IP
	Port  int
}

func (*Addr) IsValid

func (a *Addr) IsValid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL