mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
ghttp.Server事件回调之间支持通过ghttp.Request.Param自定义参数进行流程传参
This commit is contained in:
@ -65,7 +65,7 @@ gf是一款模块化、松耦合、轻量级、高性能的Web开发框架。开
|
||||
* [ORM链式操作](http://gf.johng.cn/596224)
|
||||
* [ORM方法操作](http://gf.johng.cn/596223)
|
||||
* [ORM事务操作](http://gf.johng.cn/596225)
|
||||
* [ORM高级用法](http://gf.johng.cn/606435)
|
||||
* [ORM高级特性](http://gf.johng.cn/606435)
|
||||
* [框架开发进阶](http://gf.johng.cn/598801)
|
||||
* [HTTPS服务](http://gf.johng.cn/598802)
|
||||
* [服务性能分析](http://gf.johng.cn/592298)
|
||||
|
||||
12
TODO
12
TODO
@ -4,11 +4,7 @@ ON THE WAY:
|
||||
3. 更多数据库的ORM功能支持;
|
||||
4. 验证码包支持;
|
||||
5. FAQ
|
||||
6. ghttp.Server多个时间之间如何传参?Request?Context?
|
||||
7. ghttp.Server日志中增加请求时间和返回时间,以便计算执行时间差;
|
||||
8. 由于去掉了gdb的单例模式,并且将gins的部分对象封装迁移到了g包中,需要同时梳理文档,完善修改;
|
||||
9. 在代码中增加https与http同时开启使用的示例代码,这块大家问得比较多;
|
||||
10. gdb对象管理增加二级连接池特性;
|
||||
6. gdb对象管理增加二级连接池特性;
|
||||
|
||||
DONE:
|
||||
1. gconv完善针对不同类型的判断,例如:尽量减少sprintf("%v", xxx)来执行string类型的转换;
|
||||
@ -21,4 +17,8 @@ DONE:
|
||||
8. 跟踪第三方mxj包的issue问题:https://github.com/clbanning/mxj/issues/48;
|
||||
9. gdb Where方法参数的改进,研究是否可以将string参数类型修改为interface{};
|
||||
10. gpage分页控制功能;
|
||||
11. https支持;
|
||||
11. https支持;
|
||||
12. ghttp.Server日志中增加请求时间和返回时间,以便计算执行时间差;
|
||||
13. 由于去掉了gdb的单例模式,并且将gins的部分对象封装迁移到了g包中,需要同时梳理文档,完善修改;
|
||||
14. 在代码中增加https与http同时开启使用的示例代码,这块大家问得比较多;
|
||||
15. ghttp.Server多个事件之间通过ghttp.Request.Param自定义参数传参;
|
||||
@ -31,6 +31,7 @@ type Request struct {
|
||||
Router *Router // 匹配到的路由对象
|
||||
EnterTime int64 // 请求进入时间(微秒)
|
||||
LeaveTime int64 // 请求完成时间(微秒)
|
||||
Param interface{} // 开发者自定义参数
|
||||
}
|
||||
|
||||
// 创建一个Request对象
|
||||
|
||||
Reference in New Issue
Block a user