ports

package
v1.14.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStablePort

func GetStablePort(start int, appID string) (int, error)

GetStablePort returns an available TCP port. It first attempts to get a free port that is between start and start+2047, which is calculated in a deterministic way based on the current process' environment. If no available port can be found, it returns a random port (which could be outside of the range defined above).

Types

This section is empty.

Jump to

Keyboard shortcuts

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