Kevin Wan
|
2cdff97934
|
feat: use mongodb official driver instead of mgo (#1782)
* wip: backup
* wip: backup
* wip: backup
* backup
* backup
* backup
* add more tests
* fix wrong dependency
* fix lint errors
* remove test due to data race
* add tests
* fix test error
* add mon.Model
* add mon.Model unmarshal
* add monc
* add more tests for monc
* add more tests for monc
* add docs for mon and monc packages
* fix doc errors
* chhore: add comment
* chore: fix test bug
* chore: refine tests
* chore: remove primitive.NewObjectID in test code
* chore: rename test files for typo
|
2022-04-19 14:03:04 +08:00 |
|
Kevin Wan
|
92b450eb11
|
fix: ignore timeout on websocket (#1802)
|
2022-04-18 20:14:46 +08:00 |
|
Kevin Wan
|
ab01442d46
|
add more tests (#1763)
* feat: add goctl docker build scripts
* chore: add more tests
|
2022-04-06 16:09:06 +08:00 |
|
Kevin Wan
|
3279a7ef0f
|
feat: add rest/httpc to make http requests governacible (#1638)
* feat: change x-trace-id to traceparent to follow opentelemetry
* feat: add rest/httpc to make http requests governacible
* chore: remove blank lines
|
2022-03-13 14:11:14 +08:00 |
|
Kevin Wan
|
842656aa90
|
feat: log 404 requests with traceid (#1554)
|
2022-02-19 20:50:33 +08:00 |
|
Kevin Wan
|
fdc7f64d6f
|
chore: update unauthorized callback calling order (#1469)
* chore: update unauthorized callback calling order
* chore: add comments
|
2022-01-20 21:09:45 +08:00 |
|
Kevin Wan
|
bf2feee5b7
|
feat: implement console plain output for debug logs (#1456)
* feat: implement console plain output for debug logs
* chore: rename console encoding to plain
* chore: refactor names
|
2022-01-17 12:43:15 +08:00 |
|
Kevin Wan
|
468c237189
|
chore: upgrade dependencies (#1444)
* chore: upgrade dependencies
* ci: upgrade go to 1.15
|
2022-01-14 11:01:02 +08:00 |
|
Kevin Wan
|
ba6a7c9dc8
|
chore: refactor rest/timeouthandler (#1415)
|
2022-01-05 11:17:10 +08:00 |
|
Kevin Wan
|
a91c3907a8
|
feat: rename module from tal-tech to zeromicro (#1413)
|
2022-01-04 15:51:32 +08:00 |
|
Kevin Wan
|
62266d8f91
|
fix #1070 (#1389)
* fix #1070
* test: add more tests
|
2021-12-29 21:34:28 +08:00 |
|
Kevin Wan
|
cd289465fd
|
chore: coding style and comments (#1361)
* chore: coding style and comments
* chore: optimize `ParseJsonBody` (#1353)
* chore: optimize `ParseJsonBody`
* chore: optimize `ParseJsonBody`
* fix: fix a test
* chore: optimize `ParseJsonBody`
* fix a test
* chore: add comment
* chore: refactor
Co-authored-by: chenquan <chenquan.dev@foxmail.com>
|
2021-12-22 21:43:37 +08:00 |
|
Kevin Wan
|
6f1d27354a
|
chore: put error message in error.log for verbose mode (#1355)
|
2021-12-21 11:36:01 +08:00 |
|
Kevin Wan
|
71d40e0c08
|
Revert "排除客户端中断导致的503错误 (#1343)" (#1351)
This reverts commit 2cdf5e7395 .
|
2021-12-20 20:34:43 +08:00 |
|
Kevin Wan
|
4ba2ff7cdd
|
feat: treat client closed requests as code 499 (#1350)
* feat: treat client closed requests as code 499
* chore: add comments
|
2021-12-20 19:43:38 +08:00 |
|
vic
|
2cdf5e7395
|
排除客户端中断导致的503错误 (#1343)
|
2021-12-20 19:43:13 +08:00 |
|
Kevin Wan
|
ebc90720ea
|
feat: slow threshold customizable in rest (#1189)
* feat: slow threshold customizable in rest
* feat: slow threshold customizable in rest
|
2021-11-01 14:48:26 +08:00 |
|
chenquan
|
022c100dc9
|
Add request method in http log (#1120)
* Add request method in http log
* Update log format
|
2021-10-12 21:50:30 +08:00 |
|
Kevin Wan
|
10e7922597
|
feat: opentelemetry integration, removed self designed tracing (#1111)
* feat: opentelemetry integration, removed self designed tracing
* feat: support zipkin on opentelemetry integration
* feat: support zipkin on opentelemetry integration, enable it in conf
* style: format code
* fix: support logx without exporter configured
* fix: check return values
* refactor: simplify code
* refactor: simplify opentelemetry integration
* ci: fix staticcheck errors
|
2021-10-03 20:53:50 +08:00 |
|
Kevin Wan
|
ed15ca04f4
|
fix: opentelemetry traceid not correct (#1108)
|
2021-10-01 22:44:37 +08:00 |
|
Kevin Wan
|
65905b914d
|
ci: add reviewdog (#1096)
|
2021-09-29 13:09:20 +08:00 |
|
Kevin Wan
|
1eb1450c43
|
downgrade golang-jwt to support go 1.14 (#1073)
|
2021-09-21 13:42:45 +08:00 |
|
Kevin Wan
|
30e49f2939
|
fix jwt security issue by using golang-jwt package (#1066)
|
2021-09-19 22:33:35 +08:00 |
|
Kevin Wan
|
58874779e7
|
move opentelemetry into trace package, and refactoring (#996)
* move opentelemetry into trace package, and refactoring
* rename rewritten package names
|
2021-09-05 22:18:35 +08:00 |
|
Kevin Wan
|
9bdadf2381
|
fix golint issues (#992)
|
2021-09-04 12:16:30 +08:00 |
|
Kevin Wan
|
7618139dad
|
refactor (#977)
|
2021-08-31 12:04:09 +08:00 |
|
zhoushuguang
|
280e837c9e
|
rest otel support (#943)
|
2021-08-24 10:04:12 +08:00 |
|
Kevin Wan
|
f669e1226c
|
fix #556 (#938)
|
2021-08-22 23:36:35 +08:00 |
|
Kevin Wan
|
9672298fa8
|
make sure setting code happen before callback in rest (#936)
|
2021-08-22 09:27:20 +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
|
06eeef2cf3
|
disable prometheus if not configured (#663)
|
2021-04-30 15:09:49 +08:00 |
|
Bo-Yi Wu
|
afd9ff889e
|
chore: update code format. (#628)
|
2021-04-15 19:49:17 +08:00 |
|
Kevin Wan
|
3c6951577d
|
make hijack more stable (#565)
|
2021-03-15 20:11:09 +08:00 |
|
Kevin Wan
|
1a1a6f5239
|
add http hijack methods (#555)
|
2021-03-09 21:30:45 +08:00 |
|
Kevin Wan
|
655ae8034c
|
fix golint issues in rest (#529)
|
2021-03-01 19:15:35 +08:00 |
|
Kevin Wan
|
5e969cbef0
|
fix golint issues, else blocks (#457)
|
2021-02-09 13:50:21 +08:00 |
|
Kevin Wan
|
54414db91d
|
fix golint issues, exported doc (#451)
|
2021-02-08 21:31:56 +08:00 |
|
Kevin Wan
|
e97e1f10db
|
simplify code with http.Flusher type conversion (#325)
* simplify code with http.Flusher type conversion
* simplify code with http.Flusher type conversion, better version
|
2020-12-29 10:25:55 +08:00 |
|
jichangyun
|
0bd2a0656c
|
The ResponseWriters defined in rest.handler add Flush interface. (#318)
|
2020-12-28 21:30:24 +08:00 |
|
bittoy
|
3819f67cf4
|
add redis geospatial (#209)
* add redis geospatial
* fix go test error
|
2020-11-16 19:45:43 +08:00 |
|
kevin
|
94645481b1
|
fix golint issues
|
2020-10-16 10:50:43 +08:00 |
|
kevin
|
20d53add46
|
update readme
|
2020-10-11 19:42:40 +08:00 |
|
kevin
|
adc275872d
|
add more tests
|
2020-10-10 11:53:49 +08:00 |
|
kevin
|
9277ad77f7
|
fix typo of prometheus
|
2020-09-27 17:15:15 +08:00 |
|
kevin
|
a958400595
|
rename prommetric to prometheous, add unit tests
|
2020-09-27 16:14:16 +08:00 |
|
kevin
|
5e99f2b85d
|
add trace/span in http logs
|
2020-09-20 22:02:45 +08:00 |
|
kevin
|
9e14820698
|
fix golint warnings
|
2020-08-19 16:00:55 +08:00 |
|
kevin
|
80d55dbc02
|
export httpx.GetRemoteAddr
|
2020-08-12 12:25:52 +08:00 |
|
kevin
|
a7c02414f3
|
export token parser for refresh token service
|
2020-08-12 12:12:31 +08:00 |
|
kevin
|
40895ba8d9
|
optimize reading http request body
|
2020-08-10 18:27:08 +08:00 |
|
kevin
|
215b4bae3b
|
check content length before reading
|
2020-08-10 17:55:19 +08:00 |
|
kevin
|
0a7e0cce77
|
update package reference
|
2020-08-08 16:40:10 +08:00 |
|
kevin
|
0897f60c5d
|
rename ngin to rest
|
2020-07-31 11:14:48 +08:00 |
|