portmap

package
v1.4.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: Apache-2.0 Imports: 6 Imported by: 7

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