health

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v1.13.0

type Options struct {
	RouterOptions []RouterOptions
	Targets       *int
	Log           logger.Logger
}

type RouterOptions added in v1.12.0

type RouterOptions func(log logger.Logger) (string, http.Handler)

func NewJSONDataRouterOptions added in v1.12.0

func NewJSONDataRouterOptions[T any](path string, getter func() (T, error)) RouterOptions

func NewRouterOptions added in v1.12.0

func NewRouterOptions(path string, handler http.Handler) RouterOptions

type Server added in v0.8.0

type Server interface {
	Run(context.Context, int) error
	Ready()
}

Server is the interface for the healthz server.

func NewServer added in v0.8.0

func NewServer(opts Options) Server

NewServer returns a new healthz server.

Jump to

Keyboard shortcuts

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