Documentation
¶
Overview ¶
Package net provides network utilities extending the standard net package.
Index ¶
- func FreePort(ctx context.Context) (int, error)
- func FreePorts(ctx context.Context, n int) ([]int, error)
- func IsFreePort(ctx context.Context, port int) error
- func WaitFor(ctx context.Context, network, address string, timeout time.Duration) error
- func WaitForFreePort(ctx context.Context, port int, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFreePort ¶ added in v0.11.0
IsFreePort checks if a specific port is available on localhost
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.