Documentation ¶ Index ¶ Constants func CLIFlags(envPrefix string) []cli.Flag func ListenAndServe(ctx context.Context, hostname string, port int) error type CLIConfig func ReadCLIConfig(ctx *cli.Context) CLIConfig func (m CLIConfig) Check() error Constants ¶ View Source const ( EnabledFlagName = "pprof.enabled" ListenAddrFlagName = "pprof.addr" PortFlagName = "pprof.port" ) Variables ¶ This section is empty. Functions ¶ func CLIFlags ¶ func CLIFlags(envPrefix string) []cli.Flag func ListenAndServe ¶ func ListenAndServe(ctx context.Context, hostname string, port int) error Types ¶ type CLIConfig ¶ type CLIConfig struct { Enabled bool ListenAddr string ListenPort int } func ReadCLIConfig ¶ func ReadCLIConfig(ctx *cli.Context) CLIConfig func (CLIConfig) Check ¶ func (m CLIConfig) Check() error Source Files ¶ View all Source files cli.go server.go Click to show internal directories. Click to hide internal directories.