1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-14 02:33:03 +02:00
Commit Graph

75 Commits

Author SHA1 Message Date
haiyux
2e045c3e42
feat: middleware seletor add ctx match (#1652)
* feat: middleware seletor add headers match

* fix

* add some annotation

* add ctx seletor

* fix match function

* update match
2021-12-13 21:31:01 +08:00
china小宇
83ebf53b93
fix: circuitbreaker use client context (#1679) 2021-12-09 23:20:46 +08:00
spume
0f423be434
fix(middleware/tracing): modify kartos to kratos (#1628) 2021-11-12 23:12:00 +08:00
Evan
f9a132c9dd
feat: recovery logger with ctx (#1601)
Co-authored-by: 曾政 <zengz@weipaitang.com>
2021-11-04 19:40:34 +08:00
longxboy
056812e4b2
feat: add http transport interface (#1533)
feat: add http transport interface
2021-10-08 11:10:21 +08:00
Bear
5e88a20cd4
fix: 'tokenInfo' might have 'nil' or bad value (#1534)
* fix: 'tokenInfo' might have 'nil' or bad value

* fix: return the origin err
2021-10-06 13:06:31 +08:00
hotcha
7cc6565d01
fix typo (#1509) 2021-09-24 14:21:35 +08:00
Kagaya
04bc0e63ba
test(middleware/tracing): tracing unit test enhancement (#1484)
* use t.Setenv

* add tracing test

* lint fix

* update go test env to go@1.17

* remove grep

* rename Transport
2021-09-17 04:20:42 +08:00
Tony Chen
6e6526efd9
fix: middleware uses sentinel error (#1463) 2021-09-11 18:56:51 +08:00
Casper-Mars
ab5152dbe1
feat(middleware/auth): add auth middleware (#1274)
* add auth middleware
2021-09-10 10:49:18 +08:00
Tony Chen
b38c1145cf
fix(middleware/circuitbreaker): add breaker group (#1453)
* add breaker group

* update aegis to v0.1.1
2021-09-09 10:40:53 +08:00
yuemoxi
8823a1c618
feat:middleware selector add func match (#1329)
* feat:middleware selector add func match
2021-09-06 22:04:42 +08:00
Tony Chen
1ac50be94c
fix: sra to aegis (#1420)
* fix: sra to aegis
2021-09-05 22:42:38 +08:00
Kagaya
de55281108
feat(middleware/ratelimit): add rate limiter middleware (#1271)
* add ratelimit middleware
2021-09-05 21:32:36 +08:00
Kagaya
47f039792b
feat(middleware/breaker): add circuit breaker middleware (#1299)
* add breaker middleware
2021-09-05 21:15:06 +08:00
Windfarer
0ec3ff0b46
refactor: move plugins to contrib dir (#1399)
* move to contrib dir


Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-09-01 13:40:14 +08:00
Kagaya
f7588a47de
fix: ci lint error (#1391)
* fix lint check

* fix lll lint error

* fix build error

* fix gomnd

* fix shadow declaration

* add make test command

* update
2021-08-31 10:14:57 +08:00
包子
7b6332ee75
deps: middleware add separate go.mod and removes framework deps (#1385)
* deps: middleware add separate go.mod and removes framework deps
2021-08-30 23:07:31 +08:00
yuemoxi
12f17a3e2e
test(middleware/) add test (#1379)
* test(middleware/) add test
2021-08-28 00:00:27 +08:00
Xudong Cai
b44e47b087
refactor: optimize the code and use golangci-lint to check for any errors (#1298)
* feat: optimize the code and use golangci-lint to check for any errors

* fix: TestLogger unit test
2021-08-16 10:35:08 +08:00
Xudong Cai
80378ca10d
fix: if not kratos context then panic will result (#1338)
* fix: if not kratos context panic

当ctx不是kratos的context,则app.Name()会导致panic
2021-08-15 17:02:59 +08:00
月墨夕
86621a9573
test(internal/context,middleware) add test (#1326)
* add: test
2021-08-13 14:11:08 +08:00
longxboy
f65a0a9134
feat: enhance tracing (#1300)
* feat: enhance tracing

* fix go lint
2021-08-05 18:51:20 +08:00
zwhyb
6aba247990
add selector code annotation (#1275) 2021-07-29 13:36:52 +08:00
Tony Chen
623fc5cb3f
update version to v2.1.0-dev (#1249)
* update version to v2.1.0-dev

* fix pkg ordering

* upgrade kratos version
2021-07-25 22:29:16 +08:00
zwhyb
7977deac65
middleware/selector (#1244)
* middleware selector client and support array
2021-07-25 21:58:40 +08:00
longxboy
545ffd1084
add response header (#1119)
* add response header

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-29 15:33:18 +08:00
opensite
01409cfb78
kratos/typs(trace): the world spelling corrects (#1116) 2021-06-28 11:11:03 +08:00
包子
4a6eb3e47f
Fix rename tracing.WithPropagators to tracing.WithPropagator (#1095)
* Fix rename tracing.WithPropagators to tracing.WithPropagator
2021-06-22 22:39:55 +08:00
miya
b22bc26a02
middleware/tracing: add test (#1083) 2021-06-19 23:47:40 +08:00
Tony Chen
51a3a32502
middleware/metadata: add md test (#1064)
* add metadata test
2021-06-15 21:41:55 +08:00
Tony Chen
6ee0607f03
transport: add transport kind (#1059)
* add transport kind
2021-06-15 11:05:13 +08:00
longxboy
68e7f4854c
add range (#1052)
* add range

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-14 11:07:46 +08:00
Tony Chen
8d8cd8c8a8
Middleware/metadata v2 (#1050)
* add middleware metadata
* add transport header
* add transport carrier

Co-authored-by: longXboy <longxboy@gmail.com>
2021-06-14 00:59:07 +08:00
Tony Chen
1b13abd136
transport/http: add http route (#1029)
* add http route

* fix http context

* add HTTP middleware

Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-06-12 18:30:17 +08:00
longxboy
736385c8e6
Feat/uni transport (#1028)
* add metadata incoming&outgoing

* regenerate proto

* uni transport

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-11 15:05:57 +08:00
miya
c551448bbd
error.Code def support http , mw/log&metrics update (#1015)
* mw/metrics add tag
2021-06-08 11:28:02 +08:00
miya
544e08f729
mw/log: http code 0 (#1010)
* fix middleware/log default code
2021-06-07 12:38:57 +08:00
miya
0f011ad688
add test recovery (#1004)
* add middle/validate test

* add middle/recovery test
2021-06-04 12:38:54 +08:00
miya
97946ddcbd
add middle/validate test (#1002) 2021-06-03 22:51:40 +08:00
longXboy
6c70049d2f delete trace 2021-06-03 19:20:34 +08:00
longXboy
bf00542cb0 fix loggin middleware 2021-06-03 19:20:34 +08:00
Tony Chen
5ed0c006a0
clean access logging (#996) 2021-06-03 13:49:13 +08:00
longxboy
930d1f6cf7
get req from ctx (#975)
Co-authored-by: longXboy <longxboy@gmail.com>
2021-05-31 22:17:47 +08:00
Tony Chen
66412031fd
errors: refactor status code (#948)
* refactor status code
2021-05-25 15:01:53 +08:00
Tony Chen
cc0221b5ce
errors: add errors coder (#946)
* add errors coder

* rename internal http to httputil

* add errors proto
2021-05-25 00:56:31 +08:00
Tony Chen
ef6e52d1ba
add multiple middlewares (#936) 2021-05-20 23:30:50 +08:00
dowenliu-xyz
aab0d5aa43
fix tracing: call tracer.End() in closure. (#928) 2021-05-18 20:37:49 +08:00
Tony Chen
ba5b8d1ee3
api/metadata: clean package (#926)
* clean api proto
* fix nil trace_id
2021-05-18 10:29:33 +08:00
longxboy
8f8b861f7d
add default propagation for trace (#919)
* add default propagation for trace

* add trace carrier
2021-05-17 17:23:41 +08:00