package
2.7.11
Repository: https://github.com/influxdata/influxdb.git
Documentation: pkg.go.dev

# Functions

ErrCheck will create a health checker that executes a function.
Error is a utility function for creating a response from an error message.
Info is a utility function to generate a healthy status with a printf message.
Named returns a Checker that will attach a name to the Response from the check.
NamedFunc is the same as Named except it takes a CheckerFunc.
NewCheck returns a Health with a default checker.
Pass is a utility function to generate a passing status response with the default parameters.

# Constants

DefaultCheckName is the name of the default checker.
StatusFail indicates a specific check has failed.
StatusPass indicates a specific check has passed.

# Structs

Check wraps a map of service names to status checkers.
Response is a result of a collection of health checks.

# Interfaces

Checker indicates a service whose health can be checked.
NamedChecker is a superset of Checker that also indicates the name of the service.

# Type aliases

CheckerFunc is an adapter of a plain func() error to the Checker interface.
Responses is a sortable collection of Response objects.
Status string to indicate the overall status of the check.