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: 0

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 for echo by wrapping the generic health check

func Use

func Use(e *echo.Echo, url string) *Health

Use registers a new health check handler and returns it

func (*Health) HandlerFunc

func (health *Health) HandlerFunc() func(c echo.Context) error

HandlerFunc returns an echo `HandlerFunc` for this health check implements https://pkg.go.dev/github.com/labstack/echo/v4#HandlerFunc

func (*Health) SetServingStatus

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

SetServingStatus updates the serving status

Jump to

Keyboard shortcuts

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