network

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Localhost = "localhost"

Variables

This section is empty.

Functions

func AllHostsBindAddr added in v0.8.0

func AllHostsBindAddr(port int) string

An address spec for listening on a port on 0.0.0.0.

func IsBindAddrFree added in v0.8.0

func IsBindAddrFree(addr string) error

Checks if no one is listening on the current address.

func LocalhostBindAddr added in v0.8.0

func LocalhostBindAddr(port int) string

An address spec for listening on localhost ONLY

Types

This section is empty.

Jump to

Keyboard shortcuts

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