Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckObserver ¶
type CheckObserver func(result *healthcheckPb.CheckResult)
type HealthChecker ¶
type HealthChecker struct {
// contains filtered or unexported fields
}
func MakeHealthChecker ¶
func MakeHealthChecker() *HealthChecker
func (*HealthChecker) Add ¶
func (hC *HealthChecker) Add(subsystemChecker StatusChecker)
func (*HealthChecker) PerformCheck ¶
func (hC *HealthChecker) PerformCheck(observer CheckObserver) healthcheckPb.CheckStatus
type StatusChecker ¶
type StatusChecker interface {
SelfCheck() []*healthcheckPb.CheckResult
}
func NewGrpcStatusChecker ¶
func NewGrpcStatusChecker(name string, grpClient grpcStatusChecker) StatusChecker
Click to show internal directories.
Click to hide internal directories.