debug

package
v0.0.0-...-79da9bc Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMux

func GetMux() *http.ServeMux

func IsReady

func IsReady() bool

func RegisterHandler

func RegisterHandler(pattern string, handler http.Handler)

RegisterHandler registers a custom handler on the debug mux. Must be called before GetMux() to be included.

func RegisterHandlerFunc

func RegisterHandlerFunc(pattern string, handler http.HandlerFunc)

RegisterHandlerFunc registers a custom handler function on the debug mux. Must be called before GetMux() to be included.

func Registry

func Registry() prometheus.Registerer

Registry returns the Prometheus registry for registering custom metrics. Metrics registered here will be exported on /metrics alongside default metrics.

func SetNotReady

func SetNotReady()

func SetReady

func SetReady()

func SetReadyCheck

func SetReadyCheck(check func() bool)

SetReadyCheck registers a custom readiness check function. If set, IsReady() will return true only if both: 1. SetReady() has been called, AND 2. The custom check function returns true

Types

This section is empty.

Jump to

Keyboard shortcuts

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