client

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanCreateTCPConnection added in v1.10.0

func CanCreateTCPConnection(address string) bool

CanCreateTCPConnection checks whether a connection can be established with a TCP service

func GetHTTPClient added in v1.3.4

func GetHTTPClient(insecure bool) *http.Client

GetHTTPClient returns the shared HTTP client

func Ping added in v1.10.0

func Ping(address string) (bool, time.Duration)

Ping checks if an address can be pinged and returns the round-trip time if the address can be pinged

Note that this function takes at least 100ms, even if the address is 127.0.0.1

Types

This section is empty.

Jump to

Keyboard shortcuts

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