health

package
v0.0.0-...-a8dead8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck struct {
	Funcs []HealthCheckFunc
	// contains filtered or unexported fields
}

func NewHealthCheck

func NewHealthCheck(ctx context.Context, healthCheckFuncs ...HealthCheckFunc) HealthCheck

func (*HealthCheck) HealthHandler

func (hc *HealthCheck) HealthHandler(w http.ResponseWriter, r *http.Request)

func (*HealthCheck) ReadinessHandler

func (hc *HealthCheck) ReadinessHandler(w http.ResponseWriter, r *http.Request)

func (*HealthCheck) RegisterHandlers

func (hc *HealthCheck) RegisterHandlers(r chi.Router)

func (*HealthCheck) SetReady

func (hc *HealthCheck) SetReady(ready bool)

type HealthCheckFunc

type HealthCheckFunc func() error

Jump to

Keyboard shortcuts

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