bind

package
v0.397.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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) Next

func (b *BindAllocator) Next() (*url.URL, error)

func (*BindAllocator) NextPort added in v0.367.0

func (b *BindAllocator) NextPort() (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL