portmap

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyPortMap

type ProxyPortMap struct {
	// contains filtered or unexported fields
}

ProxyPortMap -- proxy portmap struct

func New

func New(start, size int) *ProxyPortMap

New -- Create a new port map

func (*ProxyPortMap) GetPort

func (p *ProxyPortMap) GetPort() string

GetPort -- GetPort from global Pool

func (*ProxyPortMap) ReleasePort

func (p *ProxyPortMap) ReleasePort(port string)

ReleasePort -- Return port back to global pool

Jump to

Keyboard shortcuts

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