Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupPProf ¶
SetupPProf registers pprof debugging endpoints on the given router. It provides CPU, memory, and other performance profiling endpoints.
Types ¶
type Config ¶
type Config struct {
HTTP HTTPConfig `json:"http" yaml:"http"`
}
Config contains the complete configuration for the debug web service.
type HTTPConfig ¶
type HTTPConfig struct {
Address string `json:"address" yaml:"address"`
}
HTTPConfig contains HTTP server configuration for the debug service.
type Web ¶
type Web struct {
// contains filtered or unexported fields
}
Web provides a debug web server with pprof endpoints for performance profiling.
func NewWebServer ¶
NewWebServer creates a new debug web server instance with the given configuration.
func (*Web) Identifier ¶
Identifier returns the service identifier for the debug web server.
Click to show internal directories.
Click to hide internal directories.