Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(c *config)
func WithManualStart ¶
WithManualStart, indicate whether or not to automatically start the server on init If set to true, the caller need to manually start the server by calling `Start` function
Default: false
func WithReadTimeout ¶
WithReadTimeout, set http profiler timeout to read the request.
Default: 5 minutes
func WithRouter ¶
WithRouter, set the default router which is used by the http profiler
func WithWriteTimeout ¶
WithReadTimeout, set http profiler timeout to write the response.
Default: 5 minutes
type Profiler ¶
type Profiler struct {
// contains filtered or unexported fields
}
func InitProfiler ¶
InitProfiler, init http profiler and automatically start the http profiler by default To prevent automatically start the http profiler server use `WithManualStart(true)`
Click to show internal directories.
Click to hide internal directories.