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 ListenOpts ¶
type ListenOpts struct {
TCPAddr string
L *slog.Logger
R prometheus.Registerer
Livez Probe
Readyz Probe
}
ListenOpts represents Listen options.
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener represents TCP listener with debug HTTP handler.
func Listen ¶
func Listen(opts *ListenOpts) (*Listener, 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.
Click to show internal directories.
Click to hide internal directories.