Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnabledFlagName = "pprof.enabled" ListenAddrFlagName = "pprof.addr" PortFlagName = "pprof.port" ProfileTypeFlagName = "pprof.type" ProfilePathFlagName = "pprof.path" )
Variables ¶
This section is empty.
Functions ¶
func CLIFlagsWithCategory ¶
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.