port

package
v0.0.0-...-ec1afac Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: AGPL-3.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 FreePort

type FreePort struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *FreePort

func (*FreePort) Get

func (f *FreePort) Get() int

func (*FreePort) GetWithError

func (f *FreePort) GetWithError() (int, error)

Get returns a free port.

Jump to

Keyboard shortcuts

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