Documentation ¶
Index ¶
Constants ¶
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PortManager ¶
type PortManager struct {
// contains filtered or unexported fields
}
func NewPortManager ¶
func NewPortManager(netType string, bindAddr string, allowPorts map[int]struct{}) *PortManager
func (*PortManager) Acquire ¶
func (pm *PortManager) Acquire(name string, port int) (realPort int, err error)
func (*PortManager) Release ¶
func (pm *PortManager) Release(port int)
Click to show internal directories.
Click to hide internal directories.