health

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoReportCPUUsage

func AutoReportCPUUsage(ctx context.Context)

func SetGlobalHealthChecker

func SetGlobalHealthChecker(hc Checker)

Types

type Checker

type Checker interface {
	Healthy() error
}

func GlobalHealthChecker

func GlobalHealthChecker() Checker

type DefaultHealthChecker

type DefaultHealthChecker struct {
}

func (*DefaultHealthChecker) Healthy

func (hc *DefaultHealthChecker) Healthy() error

Jump to

Keyboard shortcuts

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