Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindAllocator ¶
type BindAllocator struct {
// contains filtered or unexported fields
}
func NewBindAllocator ¶
func NewBindAllocator(url *url.URL, staticPorts int) (*BindAllocator, error)
NewBindAllocator creates a BindAllocator, which dynamically allocates ports for binding local servers.
"staticPorts" is the number of ports that are statically allocated and that must be free before dynamic ports are allocated.
func (*BindAllocator) NextPort ¶ added in v0.367.0
func (b *BindAllocator) NextPort() (int, error)
Click to show internal directories.
Click to hide internal directories.