portmap

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation int
const (
	Map Operation = iota
	Unmap
)

func (Operation) String

func (o Operation) String() string

type PortMapper

type PortMapper interface {
	MapPort(ip net.IP, port int, proto string, destIP string, destPort int, srcIface, destIface string) error
	UnmapPort(ip net.IP, port int, proto string, destPort int, srcIface, destIface string) error
}

func NewPortMapper

func NewPortMapper() PortMapper

Jump to

Keyboard shortcuts

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