Documentation ¶
Overview ¶
Package healthcheck provide ability to check third-party services are alive of offline. currently it's simple and base
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckingMgr ¶
type HealthCheckingMgr struct {
// contains filtered or unexported fields
}
HealthCheckingMgr .
func (*HealthCheckingMgr) AddChecker ¶
func (mgr *HealthCheckingMgr) AddChecker(name string, hchecker HealthChecker, timeout int)
AddChecker of mgr
func (*HealthCheckingMgr) GinHandler ¶
func (mgr *HealthCheckingMgr) GinHandler() gin.HandlerFunc
GinHandler .
func (*HealthCheckingMgr) Handler ¶
func (mgr *HealthCheckingMgr) Handler() http.HandlerFunc
Handler .
type HealthInfo ¶
type HealthInfo struct { Healthy bool `json:"healthy"` Meta map[string]interface{} `json:"meta,omitempty"` // contains filtered or unexported fields }
HealthInfo to describe the status of target
Click to show internal directories.
Click to hide internal directories.