healthz

package
v1.14.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Healthz

type Healthz interface {
	IsReady() bool
	AddTarget() Target
	AddTargetSet(int) []Target
}

Healthz implements a health check mechanism. Tagets can be added to the health check, and the health check will return true when all targets are ready. Returns not ready if no targets are registered.

func New

func New() Healthz

type Target

type Target interface {
	Ready()
	NotReady()
}

Target determines the health of a target. Initial state is not ready.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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