ports

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindUnusedPort

func FindUnusedPort(start int, blackList sets.Int, protocol string) (int, error)

FindUnusedPort find a host port that is available

func Unused

func Unused(hp *Hostport) bool

Unused check if a host port is available

Types

type Hostport

type Hostport struct {
	Port     int
	Protocol string
}

Hostport is a host Port

func (*Hostport) String

func (hp *Hostport) String() string

String print the host port

Jump to

Keyboard shortcuts

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