Kevin Wan
cd15c19250
fix lint errors ( #937 )
2021-08-22 10:24:32 +08:00
neosu
5b35fa17de
add the opentelemetry tracing ( #908 )
...
* add the opentelemetry tracing
* fix the error sampler config
* 添加stream的链路跟踪
* fix the error field name
2021-08-22 10:03:56 +08:00
Kevin Wan
bf3ce16823
fix #820 ( #934 )
2021-08-19 22:48:21 +08:00
Kevin Wan
9c1ee50497
refactor ( #920 )
2021-08-17 10:24:12 +08:00
chenquan
7c842f22d0
Add traceId to the response headers ( #919 )
...
* Add traceId to the request headers
* Add test cases
* Update refactor code
2021-08-17 10:12:08 +08:00
Kevin Wan
c7f5aad83a
add stringx.FirstN with ellipsis ( #916 )
2021-08-16 12:08:33 +08:00
lucaq
e77747cff8
redis.go,type StringCmd = red.StringCmd ( #790 )
...
* Add Sinter,Sinterstore; Modify TestRedis_Set
* type StringCmd
* redis.go,type StringCmd = red.StringCmd
Co-authored-by: lucq <lucq@toopsoon.com>
2021-08-16 09:52:16 +08:00
Kevin Wan
f2612db4b1
add stringx.FirstN ( #914 )
2021-08-15 23:02:48 +08:00
Kevin Wan
a21ff71373
fix #889 ( #912 )
2021-08-15 15:33:45 +08:00
Kevin Wan
fbf2eebc42
add Errorv/Infov/Slowv ( #909 )
2021-08-13 18:28:39 +08:00
Kevin Wan
69935c1ba3
refactor goctl, fix golint issues ( #903 )
2021-08-11 18:08:01 +08:00
Kevin Wan
1fb356f328
refactor goctl ( #902 )
2021-08-11 18:04:42 +08:00
市民233
0b0406f41a
fix: 解决golint 部分警告 ( #897 )
...
* feat: 解决goreportcard的警报
ps: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
* feat: 优化golint警告,将processFieldPrimitiveWithJsonNumber 改成 processFieldPrimitiveWithJSONNumber
unmarshaler.go:248:23: method processFieldPrimitiveWithJsonNumber should be processFieldPrimitiveWithJSONNumber
* feat: 添加 WithCanonicalKeyFunc 注释
* feat: 添加DisableStat的注释
* feat: 添加 RegisterGoctlHome 注释
* feat: 添加 PostgreSqlJoin 注释
* feat: 解决goline警告should not use basic type string as key in context.WithValue问题
* feat: 解决golint警告信息: should not use basic type string as key in context.WithValue
* fix: 定义自定义字段类型,导致go test fail 问题
* update: 恢复原有测试用例
* fix golint warning
2021-08-11 17:57:20 +08:00
Kevin Wan
e024aebb66
fix golint issues ( #899 )
2021-08-11 11:38:55 +08:00
Kevin Wan
54d57c7d4b
refactor rest code ( #895 )
2021-08-10 17:59:33 +08:00
voidint
28a7c9d38f
fix http header binding failure bug #885 ( #887 )
2021-08-10 17:38:03 +08:00
Kevin Wan
872e75e10d
add logx.DisableStat() to disable stat logs ( #893 )
...
* add logx.DisableStat() to disable stat logs
* refactor logx code
2021-08-10 16:55:38 +08:00
Kevin Wan
6793f7a1de
fix bug that proc.SetTimeToForceQuit not working in windows ( #869 )
2021-08-04 11:31:33 +08:00
aaffo
598fda0c97
optimized ( #819 )
2021-07-15 23:50:44 +08:00
Kevin Wan
5b22823018
fix bug that empty query in transaction ( #801 )
2021-06-29 23:18:32 +08:00
Kevin Wan
9ccb997ed8
refactor mapping ( #782 )
2021-06-23 14:57:37 +08:00
skykiss
01c92a6bc5
fix: Fix problems with non support for multidimensional arrays and basic type pointer arrays ( #778 )
...
Co-authored-by: shaoqian <shaoqian.zhang@appshahe.com>
2021-06-23 10:58:01 +08:00
lucaq
c9a2a60e28
Add Sinter,Sinterstore & Modify TestRedis_Set ( #779 )
...
* Add Sinter,Sinterstore; Modify TestRedis_Set
* Update redis_test.go
fix test failure
Co-authored-by: lucq <lucq@toopsoon.com>
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2021-06-23 10:46:16 +08:00
Kevin Wan
3e8cec5c78
upgrade grpc & etcd dependencies ( #771 )
2021-06-21 09:05:20 +08:00
Kevin Wan
74ee163761
fix bug that etcd stream cancelled without re-watch ( #770 )
2021-06-17 18:46:16 +08:00
Kevin Wan
8520db4fd9
refactor fx ( #759 )
...
* refactor fx
* refactor fx, format code
2021-06-10 19:57:36 +08:00
Chen Quan
14141fed62
Add some stream features ( #712 )
...
* Add some stream features
* Update empty
* Fix initialization loop
* Delete ForeachOrdered && Fix FindFirst
* Add test case && Delete redundant code
* Update test case
* Delete SplitSteam
* Delete redundant code
2021-06-10 18:20:40 +08:00
Kevin Wan
aaa3623404
optimize nested conditional ( #709 )
2021-05-22 23:18:38 +08:00
heyanfu
8998f16054
optimize nested conditional ( #708 )
...
Co-authored-by: heyanfu <heyanfu@kingsoft.com>
2021-05-22 22:56:06 +08:00
Kevin Wan
aaa39e17a3
print entire sql statements in logx if necessary ( #704 )
2021-05-20 16:14:44 +08:00
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool ( #697 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-18 14:43:09 +08:00
Kevin Wan
491213afb8
fix #683 ( #690 )
...
* fix #683
* fix errors
2021-05-15 15:37:24 +08:00
Kevin Wan
a87978568a
fix #676 ( #682 )
2021-05-10 23:10:57 +08:00
heyanfu
a5962f677f
fix some typo ( #677 )
2021-05-10 00:09:00 +08:00
heyanfu
97d889103a
fix some typo ( #667 )
2021-05-04 21:33:08 +08:00
Kevin Wan
06eeef2cf3
disable prometheus if not configured ( #663 )
2021-04-30 15:09:49 +08:00
Kevin Wan
9adc7d4cb9
fix comment function names ( #649 )
2021-04-23 11:56:41 +08:00
heyanfu
7405d7f506
spelling mistakes ( #634 )
2021-04-17 20:15:19 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
2021-04-15 19:49:17 +08:00
Kevin Wan
08fb980ad2
add syncx.Guard func ( #620 )
2021-04-13 00:04:19 +08:00
Kevin Wan
ee630b8b57
add code coverage ( #615 )
...
* add code coverage
* simplify redis code
2021-04-09 22:40:43 +08:00
Kevin Wan
9963ffb1c1
simplify redis tls implementation ( #606 )
2021-04-08 18:19:36 +08:00
r00mz
8cb6490724
redis增加tls支持 ( #595 )
...
* redis连接增加支持tls选项
* 优化redis tls config 写法
* redis增加tls支持
* 增加redis tls测试用例,但redis tls local server不支持,测试用例全部NotNil
Co-authored-by: liuyi <liuyi@fangyb.com>
Co-authored-by: yi.liu <yi.liu@xshoppy.com>
2021-04-07 20:44:16 +08:00
Kevin Wan
05e37ee20f
refactor - remove ShrinkDeadline, it's the same as context.WithTimeout ( #599 )
2021-04-05 22:59:24 +08:00
zjbztianya
d88da4cc88
Replace contextx.ShrinkDeadline with context.WithTimeout ( #598 )
2021-04-05 21:20:35 +08:00
Oraoto
425430f67c
Simplify contextx.ShrinkDeadline ( #596 )
2021-04-03 21:25:32 +08:00
Zcc、
4e0d91f6c0
fix ( #592 )
...
Co-authored-by: zhoudeyu <zhoudeyu@xiaoheiban.cn>
2021-04-01 18:42:50 +08:00
Kevin Wan
b19c5223a9
update regression test comment ( #589 )
2021-03-30 20:53:35 +08:00
bittoy
99a2d95433
remove rt mode log ( #587 )
2021-03-30 20:45:55 +08:00
Ted Chen
9db222bf5b
fix a simple typo ( #588 )
2021-03-29 23:35:49 +08:00
Kevin Wan
bbb4ce586f
fix golint issues ( #584 )
2021-03-28 20:42:11 +08:00
Kevin Wan
bd623aaac3
support postgresql ( #583 )
...
support postgresql
2021-03-27 17:14:32 +08:00
Kevin Wan
9e6c2ba2c0
avoid goroutine leak after timeout ( #575 )
2021-03-21 16:54:34 +08:00
Kevin Wan
c0db8d017d
gofmt logs ( #574 )
2021-03-20 16:40:09 +08:00
TonyWang
52b4f8ca91
add timezone and timeformat ( #572 )
...
* add timezone and timeformat
* rm time zone and keep time format
Co-authored-by: Tony Wang <tonywang.data@gmail.com>
2021-03-20 16:36:19 +08:00
Kevin Wan
fcd15c9b17
refactor, and add comments to describe graceful shutdown ( #564 )
2021-03-14 08:51:10 +08:00
hanhotfox
c954568b61
Hdel support for multiple key deletion ( #542 )
...
* Hdel support for multiple key deletion
* Hdel field -> fields
Co-authored-by: duanyan <duanyan@xiaoheiban.cn>
2021-03-12 17:47:21 +08:00
Kevin Wan
39540e21d2
fix golint issues ( #540 )
2021-03-03 17:16:09 +08:00
hexiaoen
b321622c95
暴露redis EvalSha 以及ScriptLoad接口 ( #538 )
...
Co-authored-by: shanehe <shanehe@zego.im>
2021-03-03 17:09:27 +08:00
kingxt
a25cba5380
fix collection breaker ( #537 )
...
* fix collection breaker
* optimized
* optimized
* optimized
2021-03-03 10:44:29 +08:00
Kevin Wan
c4b2cddef7
fix golint issues ( #532 )
2021-03-02 00:04:12 +08:00
Kevin Wan
791e76bcf0
fix broken build ( #528 )
2021-02-28 23:53:58 +08:00
Kevin Wan
c566b5ff82
fix golint issues in core/stores ( #527 )
2021-02-28 23:02:49 +08:00
Kevin Wan
490241d639
fix golint issues in core/syncx ( #526 )
2021-02-28 16:16:22 +08:00
Kevin Wan
f02711a9cb
golint core/discov ( #525 )
2021-02-27 23:56:18 +08:00
Kevin Wan
ad32f9de23
fix golint issues in core/threading ( #524 )
2021-02-26 16:27:04 +08:00
Kevin Wan
f309e9f80c
fix golint issues in core/utils ( #520 )
...
* fix golint issues in core/utils
* fix golint issues in core/trace
* fix golint issues in core/trace
2021-02-26 16:20:47 +08:00
Kevin Wan
ef146cf5ba
fix golint issues in core/timex ( #517 )
2021-02-24 16:27:11 +08:00
Kevin Wan
04b0f26182
fix golint issues in core/stringx ( #516 )
2021-02-24 16:09:07 +08:00
Kevin Wan
acdaee0fb6
fix golint issues in core/stat ( #515 )
...
* change to use ServiceGroup to make it more clear
* fix golint issues in core/stat
2021-02-24 15:13:56 +08:00
Kevin Wan
56ad4776d4
fix misspelling ( #513 )
2021-02-23 13:53:19 +08:00
Kevin Wan
904d168f18
fix golint issues in core/service ( #512 )
2021-02-22 22:43:24 +08:00
Kevin Wan
4bd4981bfb
fix golint issues in core/search ( #509 )
2021-02-22 18:58:03 +08:00
Kevin Wan
90562df826
fix golint issues in core/rescue ( #508 )
2021-02-22 16:47:02 +08:00
Kevin Wan
497762ab47
fix golint issues in core/queue ( #507 )
2021-02-22 16:38:42 +08:00
Kevin Wan
6e4c98e52d
fix golint issues in core/prometheus ( #506 )
2021-02-22 14:55:04 +08:00
Kevin Wan
a58fac9000
fix golint issues in core/prof ( #503 )
2021-02-22 10:20:54 +08:00
Kevin Wan
d84e3d4b53
fix golint issues in core/proc ( #502 )
2021-02-22 10:07:39 +08:00
Kevin Wan
221f923fae
fix golint issues in core/netx ( #501 )
2021-02-22 09:56:56 +08:00
Kevin Wan
bbb9126302
fix golint issues in core/mr ( #500 )
2021-02-22 09:47:06 +08:00
Kevin Wan
e7c9ef16fe
fix golint issues in core/metric ( #499 )
2021-02-21 21:18:07 +08:00
Kevin Wan
8872d7cbd3
fix golint issues in core/mathx ( #498 )
2021-02-21 20:47:01 +08:00
Kevin Wan
334ee4213f
fix golint issues in core/mapping ( #497 )
2021-02-20 23:18:22 +08:00
Kevin Wan
226513ed60
fix golint issues in core/logx ( #496 )
2021-02-20 22:45:58 +08:00
Kevin Wan
dac00d10c1
fix golint issues in core/load ( #495 )
2021-02-20 22:02:09 +08:00
Kevin Wan
84d2b6f8f5
fix golint issues in core/limit ( #494 )
2021-02-20 21:55:54 +08:00
Kevin Wan
059027bc9d
fix golint issues in core/lang ( #492 )
2021-02-20 18:21:23 +08:00
Kevin Wan
af68caeaf6
fix golint issues in core/jsonx ( #491 )
2021-02-20 16:59:31 +08:00
Zcc、
fdeacfc89f
add redis bitmap command ( #490 )
...
Co-authored-by: zhoudeyu <zhoudeyu@xiaoheiban.cn>
2021-02-20 16:26:49 +08:00
Kevin Wan
5b33dd59d9
fix golint issues in core/jsontype ( #489 )
2021-02-20 15:07:49 +08:00
Kevin Wan
1f92bfde6a
fix golint issues in core/iox ( #488 )
2021-02-19 18:40:26 +08:00
Kevin Wan
0c094cb2d7
fix golint issues in core/hash ( #487 )
2021-02-19 18:14:34 +08:00
Kevin Wan
f238290dd3
fix golint issues in core/fx ( #486 )
2021-02-19 17:49:39 +08:00
Kevin Wan
c376ffc351
fix golint issues in core/filex ( #485 )
2021-02-19 14:30:38 +08:00
Kevin Wan
802549ac7c
fix golint issues in core/executors ( #484 )
2021-02-19 12:03:05 +08:00
Zcc、
72580dee38
redis add bitcount ( #483 )
...
Co-authored-by: zhoudeyu <zhoudeyu@xiaoheiban.cn>
2021-02-19 11:41:01 +08:00
Kevin Wan
7472d1e70b
fix golint issues in core/errorx ( #480 )
2021-02-19 10:08:38 +08:00
Kevin Wan
2446d8a668
fix golint issues in core/discov ( #479 )
2021-02-18 22:56:35 +08:00
Kevin Wan
f6894448bd
fix golint issues in core/contextx ( #477 )
2021-02-18 18:00:20 +08:00
Kevin Wan
425be6b4a1
fix golint issues in core/conf ( #476 )
2021-02-18 15:56:19 +08:00