Commit Graph

1080 Commits

Author SHA1 Message Date
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
0e0f297a3f add consurrent safety parameter for gjson.Load/LoadContent; fulfil data type auto-check logics for gjson.LoadConetnt; update comment of gjson/gparser 2019-04-02 23:33:27 +08:00
John Guo
fd2c0f2b24
Merge pull request #59 from wenzi1/master
修复gxml字符集转换的并发安全问题
2019-04-02 17:43:19 +08:00
John
ecc6e3888d up 2019-04-02 17:10:21 +08:00
John
47c073aaf3 add Clear function for gcfg; mark Reload function of gcfg as deprecated; update unit test for gins 2019-04-02 16:08: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
wenzi1
817148f3a1 增加单元测试 2019-04-01 18:32:37 +08:00
wenzi1
bd4271cd8c 增加gxml的单元测试 2019-03-31 23:36:11 +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
wenzi1
a05361011f 修复并发安全问题,改为如果非UTF8字符集则先做字符集转换 2019-03-30 23:53:42 +08:00
wenzi1
6b34a77251 修复并发安全问题,改为如果非UTF8字符集则先做字符集转换 2019-03-30 23:39:07 +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
64124c60fc add fatal error when no router set or statis feature enabled for ghttp.Server 2019-03-27 16:23:35 +08:00
John
9a0066de62 add file/folder search support for gcfg/gview in order of envpath/pwdpath/binpath/mainpath; add gfile.Search function 2019-03-27 11:48:53 +08:00
John
22c7c7403b fix issue in basic http auth check for server side 2019-03-27 09:16:23 +08:00
John
83db8e4b15 add wss example for websocket 2019-03-22 17:26:39 +08:00
John
1325a145d8 fix issue in config auto reload of gcfg 2019-03-22 15:08:43 +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
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
15cfd5ce5c add g.Export 2019-03-21 18:21:53 +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
32f575eddd update unit test of gins 2019-03-21 10:36:24 +08:00
John
fbb4cb3b1c add more unit test cases for gredis 2019-03-21 10:04:53 +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
4e3d735b90 add logging for gcron 2019-03-19 13:58:18 +08:00
John
60e5a7da28 add more unit test cases for grand/gstr 2019-03-18 23:52:25 +08:00
John
5a82d695c1 mv greuseport to a new repo 2019-03-18 13:56:16 +08:00
John
72eeadd9aa Merge branch 'master' into develop 2019-03-17 22:31:15 +08:00
John
0af55794f6 add more unit test cases for gdb 2019-03-17 22:26:41 +08:00
John
25a6c53533 add unit test cases for gfsnotify 2019-03-15 14:54:01 +08:00
John
9f9172c775 update unit test cases of package gconv 2019-03-15 09:05:56 +08:00
John
320e0db417 fix int-overflow issue in gconv.String when converting int64 to string; add more unit test cases for package gconv 2019-03-15 00:22:39 +08:00
John
cb8362d447 update unit test cases of package gins 2019-03-14 23:28:56 +08:00
John
45a83fc53c unit test cases update for package gins 2019-03-14 00:23:46 +08:00
John
3411bd1c1d merge master 2019-03-13 22:41:00 +08:00
John
6ab0a77364 add more defaulr searching paths for g.Config() 2019-03-13 22:12:59 +08:00
John
281bae4116 unit test cases update for package gins 2019-03-13 09:11:50 +08:00
John
218c692fe0 update unit test cases 2019-03-12 23:56:09 +08:00
John
fa69b581e1 update unit test cases 2019-03-12 23:50:30 +08:00
John
bd0baceeca update unit test cases 2019-03-12 23:47:27 +08:00
John
e71c837472 update unit test cases 2019-03-12 23:45:44 +08:00
John
782aaabd07 add more unit test cases for gins; update text/template for gview 2019-03-12 23:26:10 +08:00
John
8ae9276732 add disable cache feature option for package gspath 2019-03-12 00:24:31 +08:00
John
79a3aa5916 add more unit test cases for package gvalid 2019-03-11 22:58:21 +08:00
John
6171c621a7 fix issue in missing customed error messages in package gvalid 2019-03-11 22:33:20 +08:00
John
127fb67185 add session id check in session object initialzing 2019-03-11 16:33:51 +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
8a3365d18e ghttp comment updates 2019-03-10 00:39:34 +08:00
John
2ae5b1a4f8 add more unit test cases for ghttp.Server 2019-03-10 00:35:03 +08:00
John
b56679a97c revert g.Map to map[string]interface{}, add g.MapAnyAny 2019-03-09 10:17:21 +08:00
John
991f7c4958 ghttp.Response updates 2019-03-08 19:03:22 +08:00
John
770619c39e update unit test cases og gcron 2019-03-08 18:27:11 +08:00
John
4ad5450b80 gtest updates; remove one unit test case of gconv.Struct 2019-03-08 18:18:29 +08:00
John
49ce7fe885 fix data race issue of gqueue 2019-03-08 17:54:50 +08:00
John
e66f63262b add more unit test cases for ghttp.Server 2019-03-08 17:31:30 +08:00
John
94bd5da68a add map key operator support in Where function for gdb 2019-03-08 11:12:52 +08:00
John
5c638c630a add select in support for slice type of arguments in Where function of gdb 2019-03-08 10:33:36 +08:00
John
a6ec9d7a1c update gdb.Model.Where, orverwrite args if multiple calls Where function 2019-03-08 10:18:38 +08:00
John
22a7ef43ce Merge branch 'master' into develop 2019-03-08 00:21:52 +08:00
John
ebf56a86ab add Alterable function for gdb.Model 2019-03-07 23:53:56 +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
c8251ed82f g.Map updates 2019-03-06 10:38:50 +08:00
John
2335ea0c4d merge master 2019-03-05 21:07:54 +08:00
John
5d874e9063 add example code for gconv.Map; comment updates of gdb 2019-03-05 17:52:34 +08:00
John
f2c080d25f update ghttp.Response 2019-03-05 17:16:21 +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
37617589a6 add more unit test cases for ghttp.Server 2019-03-04 23:51:44 +08:00
John
28abf0c175 add ReplaceI/ReplaceIByArray/ReplaceIByMap case-insensetive replacing functions for gstr 2019-03-04 23:35:06 +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
c3b9b8d5ae gconv updates 2019-03-03 00:53:35 +08:00
John
1ad076c522 travis updates 2019-03-03 00:31:16 +08:00
John
55a5532c2e gdb updates 2019-03-03 00:14:20 +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
5d37626981 hot fix issue in router registry 2019-02-28 14:07:00 +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
86834c5a15 version and comment updates 2019-02-27 22:17:09 +08:00
John
c2046157d6 add ghttp.Request.GetRawString function 2019-02-27 21:17:56 +08:00
John
cdb2cc89c0 remove password for unit test of gdb 2019-02-27 12:51:48 +08:00
John
4964c09a77 add more unit test cases for gdb 2019-02-27 12:38:12 +08:00
John
ef34b2c9ce gdb updates, add batch operation support for Insert/Save/Replace, change list param type from List to interface{} for Batch* functions 2019-02-27 09:38:10 +08:00
John
9afe242293 Merge branch 'master' into qiangg_gdb_map 2019-02-27 08:52:50 +08:00
John
fdea242b50 Merge branch 'master' into develop 2019-02-26 22:23:24 +08:00
John
7058e4f2c4 fix issue of router group in auto-adding 'index' router for controller and object 2019-02-26 22:21:57 +08:00
John
704a5dbd73 fix issue of "memory leaks" in gfpool 2019-02-26 17:52:50 +08:00
John
fbd4ce8c2e fulfil unit cases of ghttp.Cookie/Session 2019-02-26 17:17:11 +08:00
John
cb3ce71cdc fix issue in ghttp.Session 2019-02-26 14:33:01 +08:00
John
7f44f2f5e4 gdb updates 2019-02-26 14:23:29 +08:00
John
66efbe63f0 add struct support for *Insert/*Save/*Replace/*Update/Where/Data functions 2019-02-26 01:19:01 +08:00
John
49a1308875 ghttp.Session updates 2019-02-25 23:08:26 +08:00
John
4332580c01 disable build-in session variable in template parsing, when it's not necessary 2019-02-25 15:20:57 +08:00
John
0f854e46d8 refact Merge function for garray; add more frequently-used type alias for gf 2019-02-22 09:08:46 +08:00
John
4564f38e1a add PopRands/Rands functions for garray 2019-02-20 19:06:08 +08:00