Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
Checker checks the status of the dependency and returns error. In case the dependency is working as expected, return nil.
type CheckerFunc ¶
CheckerFunc is a convenience type to create functions that implement the Checker interface.
type Health ¶
type Health struct {
// contains filtered or unexported fields
}
func (*Health) RegisterChecker ¶
func (*Health) RegisterObserver ¶
type Option ¶
type Option func(*Health)
Option adds optional parameter for the Health
func WithChecker ¶
WithChecker adds a status checker that needs to be added as part of healthcheck. i.e database, cache or any external dependency
func WithObserver ¶
WithObserver adds a status checker but it does not fail the entire status.
func WithTimeout ¶
WithTimeout configures the global timeout for all individual checkers.
Click to show internal directories.
Click to hide internal directories.