connection

package
v0.0.0-...-efc39ba Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildStringFromOptions

func BuildStringFromOptions(opts command.Options) (string, error)

BuildStringFromOptions returns a new connection string built from options

func FindAvailablePort

func FindAvailablePort(start int, limit int) (int, error)

FindAvailablePort returns the first available TCP port in the range

func FormatURL

func FormatURL(opts command.Options) (string, error)

FormatURL reformats the existing connection string

func IsBlank

func IsBlank(opts command.Options) bool

IsBlank returns true if command options do not contain connection details

func IsPortAvailable

func IsPortAvailable(port int) bool

IsPortAvailable returns true if there's no listeners on a given port

Types

This section is empty.

Jump to

Keyboard shortcuts

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