nat

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 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