Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHandler = &Handler{callback: make([]func(ctx Context), 0, 2)}
DefaultHandler 默認跟蹤器
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
//ID 調用ID
ID string
//Func 函數名稱
Func string
//Before 進入時間
Before time.Time
//After 退出時間
After time.Time
ElapsedTime time.Duration
}
Context 跟蹤上下文
Click to show internal directories.
Click to hide internal directories.