Commit Graph

988 Commits

Author SHA1 Message Date
John
85677b952f fulfil funcs of gstr/gset/garray; move gstr/gregex to the string category; move gtest to the test category 2019-01-30 21:27:03 +08:00
John
f4773ef1e4 add func ghttp.Group.Common for common http methods(GET/PUT/POST/DELETE) binding; fix issue #IRHB3,#IRHSJ; add more unit test cases for gvalid 2019-01-29 23:01:14 +08:00
John
5eaa6183b5 update benchmark test cases of gregex 2019-01-28 12:03:47 +08:00
John
4036d40c58 add batchSqlResult for gform; TODO++ 2019-01-27 19:44:05 +08:00
John
79cb386d82 reuseport updates 2019-01-27 16:40:16 +08:00
John
09be68831b reuseport updates 2019-01-27 14:25:31 +08:00
John
0ac13c2b81 reuseport updates 2019-01-27 14:14:59 +08:00
John
94ef38e3cc reuseport updates 2019-01-27 03:28:55 +08:00
John
76882ac01c update golang.org/x/sys, add reuseport package 2019-01-27 03:13:20 +08:00
John
c4962ec017 gfpool updates 2019-01-24 20:15:11 +08:00
John
58d60bc899 add json tag support for struct converting of gconv 2019-01-24 15:37:53 +08:00
John
5dd0a78423 ghttp updates 2019-01-24 14:03:48 +08:00
John
141ea7cc2d ghttp updates 2019-01-24 13:50:26 +08:00
John
a488d1dbf7 ghttp updates 2019-01-24 13:40:48 +08:00
John
ec130d0763 RELEASE updates 2019-01-23 21:30:02 +08:00
John
b02205f7cd gpool updates 2019-01-23 17:27:30 +08:00
John
c27bc0023f Merge branch 'master' of https://gitee.com/johng/gf 2019-01-23 15:01:29 +08:00
John
9698a7c5be gpool updates 2019-01-23 15:01:21 +08:00
John
071e2f8bb4 !17 修复where为空时不是1=1的bug
Merge pull request !17 from 张金富/master
2019-01-23 13:46:41 +08:00
John
726d3f7024 update unit tests of gtimer 2019-01-23 13:36:39 +08:00
John
3503aa43b4 gtimer, gmlock updates 2019-01-23 13:30:46 +08:00
John
e865b46304 add console and env values to change the default values of gtimer 2019-01-23 13:01:58 +08:00
John
494f96495e fulfil unit test cases of gtimer 2019-01-23 11:28:57 +08:00
John
7ed2081513 gcron, gtimer updates 2019-01-22 22:07:46 +08:00
John
5110313657 gcron, gtimer updates 2019-01-22 13:50:10 +08:00
John
24990e26c8 gcron, gtimer updates 2019-01-21 22:09:51 +08:00
zhangjinfu
3ca086bcec 修复where为空时不是1=1的bug 2019-01-21 16:26:47 +08:00
John
7d103c4ee8 gcron updates 2019-01-18 22:02:17 +08:00
John
5fed6f5681 update unit test case of gmlock 2019-01-18 15:14:05 +08:00
John
616539ecb0 update unit test cases of gmlock, concurrent safe reason 2019-01-18 15:03:45 +08:00
John
9e99e88d27 gmlock updates, add more unit test cases for gmlock 2019-01-18 11:30:52 +08:00
John
efe2535977 README updates 2019-01-17 20:04:17 +08:00
John
485dafb616 update grand.MeetProb, change param type from float64 to float32 2019-01-17 14:20:18 +08:00
John
bf25a3a601 gtimer updates; grand updates, change buffer slice type from uint64 to uint32 2019-01-17 14:15:23 +08:00
John
14fcd0b2f9 move gtime.SetTimeout&gtime.SetInterval to gtimer 2019-01-16 23:23:53 +08:00
John
cb24714faa gcron updates 2019-01-16 22:59:26 +08:00
John
36199334f0 gcron updates 2019-01-16 22:34:22 +08:00
John
72c7e65dfa gcron updates 2019-01-16 21:06:35 +08:00
John
a4ad301b44 fulfil logics of Exit* funcs of ghttp 2019-01-16 20:27:58 +08:00
John
72569321fa package comments update 2019-01-16 13:35:16 +08:00
John
1600a80124 comment updates 2019-01-16 13:02:59 +08:00
John
80c1a02377 pakage comments update 2019-01-16 09:00:23 +08:00
John
0c41909454 pakage comments updates 2019-01-15 23:27:47 +08:00
John
2b5d889bb9 fulfil unit test cases of gconv 2019-01-15 21:54:34 +08:00
John
2c2a71d429 fix issue in concurrent safe handling of gregex 2019-01-15 20:20:34 +08:00
John
f900414e38 add surport for field type auto detection in gform 2019-01-14 22:55:43 +08:00
John
1c72766c34 add new func Meet/MeetProb and alias N/Str/Digits/Letters for grand 2019-01-14 20:12:44 +08:00
John
302f3c1467 optimized package gconv, supported struct attr with ptr 2019-01-14 13:55:07 +08:00
John
9415419324 fix issue in gconv.Struct when given atrr of struct is nil time.Time 2019-01-14 09:00:31 +08:00
John
018853e976 optimize WebServer in hook priority handler and request exit mechanism 2019-01-13 00:43:36 +08:00
John
651bd33b73 add new 16x and 19x phone number validation for gvalid 2019-01-12 23:45:45 +08:00
John
f4644ce685 change func(xxx, safe...bool) to func(xxx, unsafe...bool); add new internal package mutex 2019-01-12 23:36:22 +08:00
John
0a422e9a89 rename go test funcs for gtimer 2019-01-12 22:47:07 +08:00
John
432c16c89f complete pckage gtimer development, a levelled timing wheel for interval/delayed jobs running and management 2019-01-12 22:41:12 +08:00
John
241706cbbf up 2019-01-12 20:20:30 +08:00
John
33dd0f9922 timing wheel up 2019-01-11 13:46:40 +08:00
John
ed8bb354e5 up 2019-01-09 18:47:11 +08:00
John
e373392f64 up 2019-01-09 13:26:59 +08:00
John
292fd2f39e up 2019-01-09 13:06:15 +08:00
John
1c9cb8286f up 2019-01-09 12:54:37 +08:00
John
8296061b64 up 2019-01-06 16:43:42 +08:00
John
bb5d84c29c up 2019-01-06 11:09:50 +08:00
John
eae857bcf7 merge master 2019-01-04 18:39:40 +08:00
John
d604d198ab hot fix 2019-01-04 15:43:56 +08:00
John
40b5162fdf up 2019-01-04 15:32:16 +08:00
John
7934ad6904 Merge branch 'develop' of https://gitee.com/johng/gf into develop 2019-01-03 19:12:08 +08:00
John
858b010caa up 2019-01-03 19:11:54 +08:00
蚊子
37cd2351e2 !16 增加ORACLE,SQL SERVER中获取指定表的所有字段名的方法
Merge pull request !16 from 蚊子/master
2019-01-02 21:11:30 +08:00
wenzi1
be1e250a6b 增加ORACLE,SQL SERVER中获取指定表的所有字段名的方法 2019-01-02 18:17:01 +08:00
John
f86896e5af Merge branch 'master' into develop 2019-01-02 12:42:36 +08:00
John
7ad4f61564 revert hot fix codes, waiting for next release to fix 2019-01-02 11:41:22 +08:00
John
adf06a2b0d thirdparty package kafka updated to date 2019-01-02 11:02:03 +08:00
John
d6aa2b2512 hot fix for gcache 2019-01-02 10:30:27 +08:00
John
a95b1f0dae add more unit test cases 2019-01-02 10:18:00 +08:00
John
f1c7b95b33 up 2019-01-01 19:43:31 +08:00
wgb
2c27c0f58a close file 2019-01-01 15:35:25 +08:00
John
6f15adf57f unit test cases++ 2018-12-31 17:46:04 +08:00
John
1966b40d01 ghttp.Client updates; add more unit test cases for web server 2018-12-31 00:50:55 +08:00
John
24ce4d098e ghttp.Client updates; add more unit test cases for web server 2018-12-31 00:22:18 +08:00
John
98619f9bc9 add more unit test cases for web server 2018-12-30 22:02:46 +08:00
John
1efeb2515d refract package 'gcron'; add package 'gtimew' for Time Wheel style job management 2018-12-30 18:56:21 +08:00
John
ccf837b2bf up 2018-12-30 14:53:16 +08:00
John
e558863743 up 2018-12-30 11:08:07 +08:00
John
43f21dfe92 Merge branch 'master' into qiangg_unit_test1 2018-12-29 13:07:32 +08:00
John
4172eae87e update default ConnMaxLifeTime to 30 seconds in gdb package 2018-12-28 22:02:21 +08:00
John
26f2c61068 update default ConnMaxLifeTime to 30 seconds in gdb package 2018-12-28 22:00:49 +08:00
John
f97bed2607 update default ConnMaxLifeTime to 10 seconds in gdb package 2018-12-28 21:56:27 +08:00
John
8ef7155c70 hot fix 2018-12-28 21:46:01 +08:00
John
f5b2556b70 up 2018-12-28 21:44:36 +08:00
John
2cff10e0d2 fix issue in controller interface definition 2018-12-26 10:17:24 +08:00
John
cab78f557d fix issue in controller detection for object parameter, in router group of web server 2018-12-25 23:20:43 +08:00
John
e726ed2c19 gdb.Model updates 2018-12-22 21:03:03 +08:00
John
503446afc7 fix issue of ghttp.Request.GetVar 2018-12-22 11:52:12 +08:00
John
2063f662d3 fix silly issue in binary search of garray package, and add unit-test file for garray 2018-12-20 21:55:05 +08:00
John
d7381399aa fix issue of grand.intn in x86 arch; add router group feature for WebServer 2018-12-20 21:04:43 +08:00
John
d05b497cdb Merge branch 'master' into qiangg_router_group 2018-12-19 18:58:47 +08:00
John
ef919be587 g.DB can use gdb's configurations, not to force using config.toml 2018-12-19 18:35:44 +08:00
John
fff31e0f4f add Charset support for mysql of gdb package; fix issue for glog for log writing failed when the folder path wa deleted 2018-12-19 18:15:22 +08:00
John
cdd6fc7c1e extend pid length from 16bit to 24bit in process communication of gproc package 2018-12-19 16:17:54 +08:00
John
74bc36a2dc remove gfile.MainPkgPath check in gcfg/gview default path 2018-12-19 14:51:09 +08:00
John
48328ae52c router group developing 2018-12-19 14:45:39 +08:00
John
a86f4f8e23 disable auto adding temp directory to gview/gcfg search path; disable backtrace feature in normal log print with glog; fix issue caused by fmt.Fprintf in gfsnotify 2018-12-18 20:03:23 +08:00
John
0a1e048268 add Model.Clone support for gdb package 2018-12-18 10:10:14 +08:00
John
fcc37c9581 CI updates 2018-12-17 19:36:34 +08:00
John
43cd391543 CI updates 2018-12-17 19:29:03 +08:00
John
18d2df33f7 CI updates 2018-12-17 19:26:59 +08:00
John
a85daa5617 CI updates 2018-12-17 18:35:29 +08:00
John
5d32ad6bc4 travis updates 2018-12-17 13:57:15 +08:00
John
95db811943 add travis/goreport/golint/govet 2018-12-17 13:02:18 +08:00
John
7a8bd96edc gdb: add support for slice argument in where statement 2018-12-17 10:52:44 +08:00
John
c5e9686a95 gdb updates, make priority=1 when no priority set 2018-12-16 23:11:15 +08:00
John
c914edf616 gdb comment updates 2018-12-16 22:27:04 +08:00
John
656bfcb6bd Merge branch 'qiangg_db2' into develop 2018-12-16 22:22:33 +08:00
John
7434dfe6fa done refacting gdb package 2018-12-16 22:22:07 +08:00
John
e67aa63a50 refract gdb package, add complete unit test cases, almost there 2018-12-15 15:50:39 +08:00
John
06fc786416 fix issue of gcache 2018-12-14 18:38:29 +08:00
John
d5e46f2b42 refracting gdb package 2018-12-14 18:35:51 +08:00
John
c003a92408 remove HANGUP signal handle of Web Server admin 2018-12-14 10:11:05 +08:00
John
09e6f10b60 new version of gdb developing 2018-12-14 10:09:45 +08:00
John
c961c22cd7 update gview: show empty string when the variable does not exist 2018-12-13 18:24:22 +08:00
John
105a821069 fix issue: database connection pool does not work expectly 2018-12-12 20:01:10 +08:00
John
670993f769 remove auto-adding main package path to search path of WebServer in develop environment 2018-12-11 19:30:38 +08:00
John
60a571f291 Fix issue: add mutex lock for method Remove of garray. 2018-12-11 09:56:58 +08:00
John
20a0cb2cd9 Merge branch 'master' of https://gitee.com/johng/gf 2018-12-10 20:24:24 +08:00
John
51e70be04d Add rewrite feature to WebServer; Add Unique for un sorted array of garray; Fix map conversion issue of gjson. 2018-12-10 20:24:20 +08:00
wenzi1
eb9ddf3c47 修改mssql的open方法连接串 2018-12-10 18:14:51 +08:00
John
80993e9f77 Fix issue of gjson package in map conversion 2018-12-09 22:30:10 +08:00
John
b7a6d257d5 Fix binary decoding issue of gbinary package. 2018-12-08 18:18:05 +08:00
John
7022486e93 Package gview: build-in function 'date' supports printing current datetime. 2018-12-05 15:52:38 +08:00
John
83f5a9d34e Package gview: build-in function 'date' supports printing current datetime. 2018-12-05 15:48:15 +08:00
John
431e1051b8 Fix gdb.Model.Count method: Count with no fields checking 2018-12-05 13:52:34 +08:00
John
8481de2b47 Add method for gcache package, to show all map datas of the cache. 2018-12-04 20:23:48 +08:00
John
c973f133de hot fix 2018-12-04 19:50:24 +08:00
John
d23cdcbe57 改进gcache,完善功能及基准测试;改进gconv.Map对struct转换时默认使用json tag作为键名 2018-12-04 19:26:46 +08:00
John
9a52175bd6 gredis增加GetConn方法获取原生redis连接对象 2018-12-01 11:28:47 +08:00
John
b19e47783b ghttp增加静态文件目录映射功能;改进gspath目录管理功能;改进gconv的slice转换功能,并增加gconv.Map方法 2018-11-30 09:48:57 +08:00
John
aee266eea0 WebServer改进 2018-11-28 20:19:28 +08:00
John
8304769953 代码修正 2018-11-27 20:37:57 +08:00
John
b965dbff70 gvar调用端改进,去掉不必要的并发安全参数;错误提示细节改进 2018-11-25 22:18:36 +08:00
John
b3353afe3c WebServer添加RouterCacheExpire配置参数 2018-11-24 11:55:57 +08:00
John
578a6a2df3 改进随机数生成缓冲区 2018-11-24 08:43:39 +08:00
John
aa42ddd3f1 改进随机数生成缓冲区 2018-11-23 21:39:05 +08:00
John
38932f306d 改进gspath缓存数据结构 2018-11-23 16:45:30 +08:00
John
5e7e1077a1 性能改进 2018-11-23 09:20:45 +08:00
John
8f85311332 完善获取数据库配置失败时的错误提示 2018-11-21 00:02:29 +08:00
John
64a22acf84 WebServer允许同一HOOK事件被多次绑定注册,先注册的回调函数优先级更高 2018-11-19 23:13:12 +08:00
John
4e5877923d dev 2018-11-19 21:49:43 +08:00
John
ceaa1a4dd1 Merge branch 'develop' of https://gitee.com/johng/gf into develop 2018-11-19 21:12:21 +08:00
John
9e1ad46c90 改进ghttp.Request,增加SetParam/GetParam请求流程自定义变量方法;gvar模块增加VarRead只读接口 2018-11-19 21:11:43 +08:00
wenzi1
d85332aca1 ORM新增对MSSQL的支持 2018-11-19 11:38:57 +08:00