healthsupport

package
v0.6.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthHandlerFunction

func HealthHandlerFunction(w http.ResponseWriter, _ *http.Request)

func HealthHandlerFunctionWithChecks

func HealthHandlerFunctionWithChecks(w http.ResponseWriter, _ *http.Request, checks []HealthCheck)

func WaitForHealthy

func WaitForHealthy(server *http.Server)

func WaitForHealthyWithClient

func WaitForHealthyWithClient(server *http.Server, client httpClient, url string) error

Types

type HealthCheck

type HealthCheck interface {
	Name() string
	Check() bool
}

type HealthInfo

type HealthInfo struct {
	Status string `json:"status"`
}

type NoopCheck

type NoopCheck struct {
}

func (*NoopCheck) Check

func (d *NoopCheck) Check() bool

func (*NoopCheck) Name

func (d *NoopCheck) Name() string

Jump to

Keyboard shortcuts

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