healthz

package
v0.0.0-...-e779149 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToContainer

func AddToContainer(container *restful.Container, path string, checks ...HealthChecker) error

func InstallHandler

func InstallHandler(container *restful.Container, checks ...HealthChecker) error

func InstallLivezHandler

func InstallLivezHandler(container *restful.Container, checks ...HealthChecker) error

Types

type HealthChecker

type HealthChecker interface {
	Name() string
	Check(req *http.Request) error
}

HealthChecker is a named healthz checker.

var PingHealthz HealthChecker = ping{}

PingHealthz returns true automatically when checked

Jump to

Keyboard shortcuts

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