healthz

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Healthz

type Healthz struct {
	Path string
	Host bool // allow request with Host header
	// contains filtered or unexported fields
}

Healthz middleware

func New

func New() *Healthz

New creates new healthz

func (*Healthz) ServeHandler

func (m *Healthz) ServeHandler(h http.Handler) http.Handler

ServeHandler implements middleware interface

func (*Healthz) Set added in v0.8.0

func (m *Healthz) Set(healthy bool)

SetLive sets healthy state

func (*Healthz) SetReady added in v0.8.0

func (m *Healthz) SetReady(ready bool)

SetReady sets ready state

Jump to

Keyboard shortcuts

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