lib

package
v0.0.0-...-0589d64 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDNSResponse

func CheckDNSResponse(address string, server string) error

CheckDNSResponse requests an IP lookup for the address. You may also specify a DNS server address, or pass an empty string to use the local resolver.

func CheckHTTPEndpoint

func CheckHTTPEndpoint(address string, timeoutSeconds int) error

CheckHTTPEndpoint sends a GET request to the specified address, with a default 10 second timeout, and expects a 200 OK response.

func CheckTCPEndpoint

func CheckTCPEndpoint(address string, port uint16, timeoutSeconds int) error

CheckTCPEndpoint sends a TCP request to the specified address and port, with a default timeout of 10 seconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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