net

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomPortInRange

func RandomPortInRange(startPort, stopPort int) int

RandomPortInRange will suggest a http port in the given range.

func RandomPortInRangeExcluding

func RandomPortInRangeExcluding(startPort, stopPort int, exclude []int) int

RandomPortInRangeExcluding will suggest a http port in the given range, excluding the given ports.

func RandomPrivatePort

func RandomPrivatePort() int

RandomPrivatePort will suggest a private http port.

func RandomPrivatePortExcluding

func RandomPrivatePortExcluding(exclude []int) int

RandomPrivatePortExcluding will suggest a http port excluding the given ports.

Types

This section is empty.

Jump to

Keyboard shortcuts

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