Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPprofDisabled = PprofDisabledError{}
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.7.0
type Config struct {
// Enabled controls whether the pprof service is enabled.
Enabled bool `json:"enabled"`
// ListenNetwork is the network to listen on.
ListenNetwork string `json:"listenNetwork,omitzero"`
// ListenAddress is the address to listen on.
ListenAddress string `json:"listenAddress"`
}
Config is the configuration for the pprof service.
type PprofDisabledError ¶ added in v1.9.0
type PprofDisabledError struct{}
PprofDisabledError is returned when the pprof service is disabled at build time.
func (PprofDisabledError) Error ¶ added in v1.9.0
func (PprofDisabledError) Error() string
Click to show internal directories.
Click to hide internal directories.