Documentation
¶
Overview ¶
Package debug provides debug facilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶ added in v1.23.0
type Handler struct {
// contains filtered or unexported fields
}
Handler represents debug handler.
func Listen ¶ added in v1.23.0
func Listen(opts *ListenOpts) (*Handler, error)
Listen creates a new debug handler and starts listener on the given TCP address.
This function can be called only once because it affects http.DefaultServeMux.
type ListenOpts ¶ added in v1.23.0
type ListenOpts struct {
TCPAddr string
L *slog.Logger
R prometheus.Registerer
Livez Probe
Readyz Probe
}
ListenOpts represents Listen options.
Click to show internal directories.
Click to hide internal directories.