Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicChecker ¶
type BasicChecker struct{}
BasicChecker supports a simple health check, which always returns nil
type Checker ¶
type Checker interface {
Check() error
}
Checker includes methods necessary for managing and determining the health of the system
type UnhealthySystemError ¶
type UnhealthySystemError struct {
Err error
}
UnhealthySystemError represents an error returned if the system is not healthy. This error can be returned from a health manager to indicate that the response code returned should be a `503`
func (*UnhealthySystemError) Error ¶
func (e *UnhealthySystemError) Error() string
Error returns an error string
func (*UnhealthySystemError) Unwrap ¶
func (e *UnhealthySystemError) Unwrap() error
Unwrap returns the underlying error
Click to show internal directories.
Click to hide internal directories.