Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckerFunc ¶
CheckerFunc wraps the CheckHealth method.
CheckHealth returns nil if the resource is healthy, or a non-nil error if the resource is not healthy. CheckHealth must be safe to call from multiple goroutines.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is an HTTP handler that reports on the success of an aggregate of Checkers. The zero value is always healthy.
func (*Handler) AddChecker ¶
func (h *Handler) AddChecker(name string, c CheckerFunc)
AddChecker adds a new check to the handler.
func (*Handler) AddObserver ¶
func (h *Handler) AddObserver(name string, c CheckerFunc)
AddObserver adds a new check to the handler but it does not fail the entire status.
Click to show internal directories.
Click to hide internal directories.