Documentation ¶
Overview ¶
package health defines health checking primitives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface { Name() string // Check runs a health check and records any errors into the specified reporter. Check(context.Context, Reporter) }
Checker is an interface for executing a health check.
type CheckerRepository ¶
type CheckerRepository interface {
AddChecker(checker Checker)
}
CheckerRepository represents a collection of checkers.
type Checkers ¶
type Checkers []Checker
Checkers is a collection of checkers. It implements CheckerRepository interface.
func (*Checkers) AddChecker ¶
Click to show internal directories.
Click to hide internal directories.