Documentation ¶ Index ¶ func ListenAndServe(opts Options) type Options func (o *Options) AddFlags(fs *pflag.FlagSet) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ListenAndServe ¶ func ListenAndServe(opts Options) Types ¶ type Options ¶ type Options struct { // EnableProfile is the flag about whether to enable pprof profiling. EnableProfile bool // ProfilingBindAddress is the TCP address for pprof profiling. // Defaults to :6060 if unspecified. ProfilingBindAddress string } func (*Options) AddFlags ¶ func (o *Options) AddFlags(fs *pflag.FlagSet) Source Files ¶ View all Source files profile.go Click to show internal directories. Click to hide internal directories.