prober

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prober added in v1.2.0

type Prober struct {
	// contains filtered or unexported fields
}

Prober holds application readiness/liveness status and provides handlers for reporting it.

func NewInRouter

func NewInRouter(logger log.FieldLogger, router *mux.Router) *Prober

NewInRouter returns new Prober which registers its endpoints in the Router to provide readiness and liveness endpoints.

func (*Prober) SetServerNotReady added in v1.2.0

func (p *Prober) SetServerNotReady(err error)

SetServerNotReady sets the readiness probe to invalid state.

Jump to

Keyboard shortcuts

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