health

package
v0.0.11-dev Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

HealthMuxModule provides the health check endpoints and metrics exporter.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Addr returns the bound listener address. It waits up to the provided
	// timeout for the listener to bind; timeout <= 0 performs a non-blocking
	// check. Returns an error if the address is still unavailable.
	Addr(timeout time.Duration) (string, error)
}

Service exposes the tunnel client's health server functionality.

Jump to

Keyboard shortcuts

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