connection

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildStringFromOptions added in v0.10.0

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

BuildStringFromOptions returns a new connection string built from options

func FindAvailablePort added in v0.11.0

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

FindAvailablePort returns the first available TCP port in the range

func FormatURL added in v0.11.1

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 added in v0.11.0

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