Help us shape the future of Go! Take the 2026 Go Developer Survey

bind

package
v0.510.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 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

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

Jump to

Keyboard shortcuts

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