Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultPort is the default port to listen.
DefaultPort = 38080
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
Diagnostic is the diagnostic.
func NewDiagnostic ¶
func NewDiagnostic(options *DiagnosticConfig) *Diagnostic
NewDiagnostic creates a new diagnostic.
type DiagnosticConfig ¶
type DiagnosticConfig struct { // ProcessID is the process id to diagnose. // If it is 0, the current process id will be used. // Optional+. Default is 0. Pid int // EnablePersist is the flag to enable persist the diagnostic data. // Default is mongoDB, you can use other storage by implement the interface. // Optional+. Default is false. EnablePersist bool // Port is the port to listen. // Optional+. Default is 38080. Port int }
DiagnosticConfig is the configuration for diagnostic.
Click to show internal directories.
Click to hide internal directories.