checks

package
Version: v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileChecker

func FileChecker(f string) health.Checker

FileChecker checks the existence of a file and returns an error if the file exists.

func HTTPChecker

func HTTPChecker(r string, statusCode int, timeout time.Duration, headers http.Header) health.Checker

HTTPChecker does a HEAD request and verifies that the HTTP status code returned matches statusCode.

func TCPChecker

func TCPChecker(addr string, timeout time.Duration) health.Checker

TCPChecker attempts to open a TCP connection.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL