health

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Health

type Health struct {
	// contains filtered or unexported fields
}

Health implements a basic health check

func (*Health) Healthy added in v0.0.15

func (health *Health) Healthy() bool

Healthy returns `true` if the service is healthy, or `false` otherwise

func (*Health) ServeHTTP added in v0.0.15

func (health *Health) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements a `http.Handler` implements https://pkg.go.dev/net/http#Handler

func (*Health) SetServingStatus

func (health *Health) SetServingStatus(status healthpb.HealthCheckResponse_ServingStatus)

SetServingStatus updates the serving status

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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