Documentation ¶ Index ¶ Constants Variables func ReleaseAll() error func ReleasePort(ip net.IP, proto string, port int) error func RequestPort(ip net.IP, proto string, port int) (int, error) Constants ¶ View Source const ( BeginPortRange = 49153 EndPortRange = 65535 ) Variables ¶ View Source var ( ErrAllPortsAllocated = errors.New("all ports are allocated") ErrPortAlreadyAllocated = errors.New("port has already been allocated") ErrUnknownProtocol = errors.New("unknown protocol") ) Functions ¶ func ReleaseAll ¶ func ReleaseAll() error func ReleasePort ¶ func ReleasePort(ip net.IP, proto string, port int) error func RequestPort ¶ func RequestPort(ip net.IP, proto string, port int) (int, error) Types ¶ This section is empty. Source Files ¶ View all Source files portallocator.go Click to show internal directories. Click to hide internal directories.