Documentation ¶
Index ¶
Constants ¶
View Source
const ( BeginPortRange = 49153 EndPortRange = 65535 )
Variables ¶
View Source
var ( ErrAllPortsAllocated = errors.New("all ports are allocated") ErrUnknownProtocol = errors.New("unknown protocol") )
Functions ¶
func ReleaseAll ¶
func ReleaseAll() error
Types ¶
type ErrPortAlreadyAllocated ¶
type ErrPortAlreadyAllocated struct {
// contains filtered or unexported fields
}
func NewErrPortAlreadyAllocated ¶ added in v1.1.0
func NewErrPortAlreadyAllocated(ip string, port int) ErrPortAlreadyAllocated
func (ErrPortAlreadyAllocated) Error ¶ added in v1.1.0
func (e ErrPortAlreadyAllocated) Error() string
func (ErrPortAlreadyAllocated) IP ¶ added in v1.1.0
func (e ErrPortAlreadyAllocated) IP() string
func (ErrPortAlreadyAllocated) IPPort ¶ added in v1.1.0
func (e ErrPortAlreadyAllocated) IPPort() string
func (ErrPortAlreadyAllocated) Port ¶ added in v1.1.0
func (e ErrPortAlreadyAllocated) Port() int
Click to show internal directories.
Click to hide internal directories.