healthsupport

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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)

Types

type HealthCheck

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

type HealthInfo added in v0.1.8

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