package
Version:
v0.0.0-...-eb934a0
Opens a new window with list of versions in this module.
Published: Aug 3, 2023
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
EnabledFlagName = "pprof.enabled"
ListenAddrFlagName = "pprof.addr"
PortFlagName = "pprof.port"
)
func CLIFlags(envPrefix string) []cli.Flag
type CLIConfig struct {
Enabled bool
ListenAddr string
ListenPort int
}
func ReadCLIConfig(ctx *cli.Context) CLIConfig
Source Files
¶
Click to show internal directories.
Click to hide internal directories.