health

package
v4.49.7 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 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) Context added in v4.47.9

func (a App) Context() context.Context

func (App) Done

func (a App) Done() <-chan struct{}

func (App) End

func (a App) End() <-chan struct{}

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