checks

package
v1.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2016 License: Apache-2.0, 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 added in v1.1.1

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