Commit Graph

718 Commits

Author SHA1 Message Date
John
ecd86e3a12 add layout example for package gview 2019-04-23 19:11:38 +08:00
John
5ff7632d32 add support of layout feature for gview; fix issue in gstr.Chr 2019-04-22 15:47:59 +08:00
John
dbb27efe3e rename io to writer for glog.Logger 2019-04-18 09:11:14 +08:00
John
2d3d2e783e add default writer for glog to be integrated with other package; comments update for glog 2019-04-17 23:50:37 +08:00
John
9419555149 add BindFuncMap funtion for gview; README updates 2019-04-17 09:46:31 +08:00
John
2f7d4cd80d fix issue in Add function for gtype.Float32/Float64 2019-04-15 22:55:12 +08:00
John
119a11eb8d README updates 2019-04-11 23:07:22 +08:00
John
9ec15ad2ca fix issue in repeated rand value of grand.Intn 2019-04-10 18:33:12 +08:00
John
85c2ed1bf2 improve nil checks for gtest.Assert* 2019-04-09 23:12:22 +08:00
John
8b3eb5b02d version&release updates 2019-04-09 00:15:48 +08:00
John
68949b69bc update example of gtime 2019-04-05 23:31:14 +08:00
John
c56c77d3a1 fix issue in G&j char format 2019-04-05 23:13:47 +08:00
John
dc82ce395a comment updates for gcfg 2019-04-05 00:23:59 +08:00
John
aa4dca11f0 fix issue in gtime; update comment for g/gtest 2019-04-04 22:52:56 +08:00
John
b89294561b add gmap.SetIfNotExistFunc/SetIfNotExistFuncLock for gmap; update comment of gmap; update instance feature of gcfg 2019-04-03 23:39:31 +08:00
John
630d8fdb43 add Instance function for gcfg 2019-04-03 09:59:15 +08:00
John
c4c7e6caf4 gofmt 2019-04-03 00:03:46 +08:00
John
07476a4349 add instance management feature for gdb/gredis; add customized configuration content management feature for gcfg; update gjson for data content type check 2019-04-02 14:37:46 +08:00
John
a3886c2179 fix issue in RemoteAddr of gudp.Conn 2019-03-31 20:58:31 +08:00
John
f258b5bf1c change logging level from error to debug in route regitsry for struct for ghttp package; handle possible overrange usage of r.URL.Path in ghttp.Server 2019-03-31 20:52:30 +08:00
John
22fa7a37f3 add UseNumber support for gjson; add more unit test cases for gjson 2019-03-28 17:51:05 +08:00
John
6a58bfc574 add stdout printing support for ghttp.Server logging 2019-03-28 09:34:16 +08:00
John
83db8e4b15 add wss example for websocket 2019-03-22 17:26:39 +08:00
John
9bc49c0b29 add logging for error in ghttp.Request 2019-03-22 14:31:02 +08:00
John
8e84e5b0f3 update comment of gredis 2019-03-22 11:22:03 +08:00
John
a42e6b0c45 ignore private attribute of struct in gconv/gvalid 2019-03-22 10:12:43 +08:00
John
51bb7a9854 ignore private attribute of struct in gconv/gvalid 2019-03-22 10:12:15 +08:00
John
62580b5719 add examples for gredis 2019-03-21 23:51:57 +08:00
John
11c89c4090 fix issue in GetOrSetFuncLock of gmap/gcache; add gutil.IsEmpty/Export functions 2019-03-21 18:20:20 +08:00
John
c9d2d5e8ab add configuration support for maxIdle/maxActive/idleTimeout/maxConnLifetime of gredis; update gjson.Append/Len functions; add more unit test cases for gredis/gins/gstr/gjson 2019-03-21 00:14:23 +08:00
John
80e0eae6b0 add TLSConfig support for ghttp.Server 2019-03-19 17:48:37 +08:00
John
5a82d695c1 mv greuseport to a new repo 2019-03-18 13:56:16 +08:00
John
64a0427150 travis updates 2019-03-18 13:34:51 +08:00
John
cb8362d447 update unit test cases of package gins 2019-03-14 23:28:56 +08:00
John
6171c621a7 fix issue in missing customed error messages in package gvalid 2019-03-11 22:33:20 +08:00
John
5db039bbce gdb.Model updates, rename Alterable function to Safe, change gdb.Model alterable in default, update Where function to support more cases when using map as its param, add more unit test cases for gdb.Model 2019-03-11 16:14:55 +08:00
John
22a7ef43ce Merge branch 'master' into develop 2019-03-08 00:21:52 +08:00
John
2ba59e8943 fix issue in gtime convert in package gconv; add Structs/Scan functions for gdb.Model; add GetStructs/GetScan functions for gdb.Base and gdb.TX 2019-03-07 23:36:45 +08:00
John
83be1de04c remove error returns from router registry functions of WebServer; add more unit test cases for WebServer 2019-03-06 15:21:00 +08:00
John
5d874e9063 add example code for gconv.Map; comment updates of gdb 2019-03-05 17:52:34 +08:00
John
975da97b4a fix issue in empty check for nil attribute of struct in package 'empty';add set-cookie support for 302 status in ghttp.Server 2019-03-05 17:06:37 +08:00
John
13749feab4 add json features '-' and 'omitempty' for gconv.Map, like package 'json' from stdlib; add internal package 'empty', to check empty variable 2019-03-04 22:59:29 +08:00
John
c1e77b7e09 update example of gtcp 2019-03-03 20:40:36 +08:00
John
962a5e93f7 update example of gtcp 2019-03-03 20:20:31 +08:00
John
f92c1fc527 update CORS feature of ghttp.Response; add more unit cases for ghttp.Server 2019-03-01 23:45:55 +08:00
John
66287c2d0e update the admin feature and unit test cases of ghttp 2019-02-28 23:57:20 +08:00
John
fa256aec9f add example for layout using template engine; fix issue with config error output in gview when no config used 2019-02-27 22:53:39 +08:00
John
3e0a975a88 fix issue in gcron, allow special char '?' for day and week pattern 2019-02-20 16:24:05 +08:00
John
9797701881 remove Search/InArray functions from gstr package; update custom http status handling logics of web server 2019-02-18 16:12:59 +08:00
John
cfdeb87093 gfile updates 2019-02-15 21:30:35 +08:00
John
f455d22893 move gkafka to new repo 2019-02-14 17:04:20 +08:00
John
6f02ad60eb hot fix issue in tpl auto update 2019-02-14 13:38:52 +08:00
John
83e50f0d38 update imports 2019-02-02 16:35:26 +08:00
John
76c49170bd change gitee.com/johng/gf -> github.com/gogf/gf 2019-02-02 16:18:25 +08:00
John
1447496efa comments update 2019-02-02 14:22:32 +08:00
John
7b85c44444 add Clone for garray; comments of garray update 2019-02-01 22:00:58 +08:00
John
ba050d4c86 merge qiangg_reuseport 2019-02-01 20:51:02 +08:00
John
29b42290c7 merge master 2019-02-01 20:46:53 +08:00
John
6c6c64bb3b rename category string to text 2019-02-01 20:45:11 +08:00
John
74a7f71894 gset/gmap update 2019-02-01 17:30:23 +08:00
John
f2e149d3b3 fulfil unit test cases of gstr 2019-02-01 14:38:45 +08:00
John
9aa5e139cf fulfil unit test cases of gstr 2019-02-01 00:02:01 +08:00
John
0e611ae94b merge master 2019-01-31 18:14:02 +08:00
John
99577ad874 hot fix gfcache issue 2019-01-31 13:55:53 +08:00
John
908a46d27d gtest updates 2019-01-31 13:00:17 +08:00
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
79cb386d82 reuseport updates 2019-01-27 16:40:16 +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
ec130d0763 RELEASE updates 2019-01-23 21:30:02 +08:00
John
b02205f7cd gpool updates 2019-01-23 17:27:30 +08:00
John
494f96495e fulfil unit test cases of gtimer 2019-01-23 11:28:57 +08:00
John
24990e26c8 gcron, gtimer updates 2019-01-21 22:09:51 +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
2ba796de01 gconv examples update 2019-01-17 20:32:02 +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
cb24714faa gcron updates 2019-01-16 22:59:26 +08:00
John
a4ad301b44 fulfil logics of Exit* funcs of ghttp 2019-01-16 20:27:58 +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
602592a354 TODO-- 2019-01-13 17:02:32 +08:00
John
018853e976 optimize WebServer in hook priority handler and request exit mechanism 2019-01-13 00:43:36 +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
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
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
f1c7b95b33 up 2019-01-01 19:43:31 +08:00
John
1966b40d01 ghttp.Client updates; add more unit test cases for web server 2018-12-31 00:50:55 +08:00
John
e558863743 up 2018-12-30 11:08:07 +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
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
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
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
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
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
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
John
b7a6d257d5 Fix binary decoding issue of gbinary package. 2018-12-08 18:18:05 +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
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
914a74bca9 完善代码示例 2018-11-26 09:33:45 +08:00
John
b965dbff70 gvar调用端改进,去掉不必要的并发安全参数;错误提示细节改进 2018-11-25 22:18:36 +08:00
John
4e3081afee ORM增加mysql datetime参数写入示例 2018-11-24 09:42:21 +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
John
10c3f6d85a 完善程序细节和测试 2018-11-18 22:22:44 +08:00
John
fe753b0bc8 当前工作目录为系统临时目录时,gcfg/gview/ghttp模块默认不添加工作目录到搜索路径 2018-11-18 19:37:42 +08:00
John
6addd64cf0 glog模块日志前缀输出改进 2018-11-17 22:12:41 +08:00
John
f1b93204ac 改进WebSocket默认支持跨域请求;修复gspath模块Search时带有indexFiles的检索问题 2018-11-17 19:45:15 +08:00
John
b1455a1736 去掉gfile中得指针池使用;增加gvalid顺序性校验结果示例程序 2018-11-17 12:09:16 +08:00
John
c89482c3d6 WebServer性能细节改进 2018-11-17 11:17:02 +08:00
John
b190ee9fe6 初步完成第一阶段的性能改进 2018-11-17 02:39:23 +08:00
John
e8101cb02f 性能改进中 2018-11-16 18:20:09 +08:00
John
7f640da9a1 修复gtime.StrToTime的日期解析问题 2018-11-13 22:47:08 +08:00