healthchecks

package
v0.59.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 2 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 {
	// contains filtered or unexported fields
}

func NewHealthCheck

func NewHealthCheck() *HealthCheck

func (*HealthCheck) Health

func (h *HealthCheck) Health() Status

func (*HealthCheck) ServeHTTP

func (h *HealthCheck) ServeHTTP(rw http.ResponseWriter, r *http.Request)

func (*HealthCheck) SetHealth

func (h *HealthCheck) SetHealth(s Status)

func (*HealthCheck) String

func (h *HealthCheck) String() string

type Status

type Status uint64
const (
	Initializing Status = iota
	Healthy
	Degraded
)

Jump to

Keyboard shortcuts

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