checks

package
v2.6.0-rc.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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.

Jump to

Keyboard shortcuts

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