Help us shape the future of Go! Take the 2026 Go Developer Survey

healthserver

package
v1.7.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthzHandlerWithChecks

func NewHealthzHandlerWithChecks(cfg *Config) (http.Handler, error)

NewHealthzHandlerWithChecks will return a http.Handler for CNS's /healthz endpoint. Depending on what we expect CNS to be able to read (based on the [configuration.CNSConfig]) then the checks registered to the handler will test for those expectations. For example, in ChannelMode: CRD, the health check will ensure that CNS is able to list NNCs successfully.

func Start

func Start(log *zap.Logger, addr string, healthz, readyz http.Handler)

Types

type Config

type Config struct {
	PingAPIServer bool
	Mapper        meta.RESTMapper
}

Jump to

Keyboard shortcuts

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