Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorPortPoolExhausted = errors.New("port pool exhausted")
Functions ¶
This section is empty.
Types ¶
type FileLocker ¶ added in v1.13.0
type FileLocker interface { filelock.FileLocker }
type LockedFile ¶ added in v1.13.0
type LockedFile interface { filelock.LockedFile }
type PortAllocator ¶
type PortAllocator struct { Tracker tracker Serializer serial.Serializer Locker filelock.FileLocker }
func (*PortAllocator) AllocatePort ¶
func (p *PortAllocator) AllocatePort(handle string, port int) (int, error)
func (*PortAllocator) ReleaseAllPorts ¶
func (p *PortAllocator) ReleaseAllPorts(handle string) error
Click to show internal directories.
Click to hide internal directories.