Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProbe ¶
func AddProbe(probe Probe)
AddProbe add components probe to global comboHealthManager.
func CreateHttpHandler ¶
func CreateHttpHandler() http.HandlerFunc
CreateHttpHandler create health http handler base on given probe.
Types ¶
type Probe ¶
type Probe interface { // MarkReady sets a ready state for the endpoint handlers. MarkReady() // MarkNotReady sets a not ready state for the endpoint handlers. MarkNotReady() // IsReady return inner state for the component. IsReady() bool // Name return probe name identifier Name() string }
Probe represents readiness status of given component.
func NewHealthManager ¶
NewHealthManager returns a new healthManager.
Click to show internal directories.
Click to hide internal directories.