healthcheck

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL