ghttp.Server事件回调之间支持通过ghttp.Request.Param自定义参数进行流程传参

This commit is contained in:
John
2018-04-30 08:37:20 +08:00
parent 319b3f6818
commit 484f0878bc
3 changed files with 8 additions and 7 deletions

View File

@ -31,6 +31,7 @@ type Request struct {
Router *Router // 匹配到的路由对象
EnterTime int64 // 请求进入时间(微秒)
LeaveTime int64 // 请求完成时间(微秒)
Param interface{} // 开发者自定义参数
}
// 创建一个Request对象