runtimehealth

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package runtimehealth owns the health-only HTTP surface shared by the customer runtime binaries. It deliberately does not register admin or UI routes.

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"runtimehealth",
	fx.Provide(
		fx.Annotate(
			func() *http.ServeMux { return http.NewServeMux() },
			fx.ResultTags(`name:"admin_mux"`),
		),
		fx.Annotate(
			newHealthService,
			fx.As(new(Service)),
		),
	),
)

Module provides the runtime-only health mux and listener.

Functions

This section is empty.

Types

type ReadinessGate

type ReadinessGate interface {
	Readiness() (bool, string)
}

ReadinessGate lets an optional runtime extension participate in /readyz without making runtimehealth import that extension.

type Service

type Service interface {
	Addr(timeout time.Duration) (string, error)
}

Service exposes the runtime health listener address.

Jump to

Keyboard shortcuts

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