Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnabledFlagName = "pprof.enabled" ListenAddrFlagName = "pprof.addr" PortFlagName = "pprof.port" ProfileTypeFlagName = "pprof.type" ProfilePathFlagName = "pprof.path" )
Variables ¶
View Source
var ErrInvalidPort = errors.New("invalid pprof port")
Functions ¶
func CLIFlagsWithCategory ¶ added in v1.7.0
Types ¶
type CLIConfig ¶
type CLIConfig struct { ListenEnabled bool ListenAddr string ListenPort int ProfileType profileType ProfileDir string ProfileFilename string }
func DefaultCLIConfig ¶
func DefaultCLIConfig() CLIConfig
func ReadCLIConfig ¶
func ReadCLIConfig(ctx *cli.Context) CLIConfig
Click to show internal directories.
Click to hide internal directories.