health

package
v4.53.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 10 Imported by: 14

Documentation

Index

Constants

View Source
const (
	LivePath  = "/health"
	ReadyPath = "/ready"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(config Config, pingers ...model.Pinger) App

func (App) Done

func (a App) Done(ctx context.Context) context.Context

func (App) End

func (a App) End(ctx context.Context) context.Context

func (App) HealthHandler added in v4.43.1

func (a App) HealthHandler() http.Handler

func (App) ReadyHandler added in v4.43.1

func (a App) ReadyHandler() http.Handler

func (App) WaitForTermination

func (a App) WaitForTermination(done <-chan struct{})

type Config

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

func Flags

func Flags(fs *flag.FlagSet, prefix string, overrides ...flags.Override) Config

Jump to

Keyboard shortcuts

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