Haibo
1f10166028
fix(tracing): use global provider by default, but allow custom providers ( #2803 )
2 years ago
Bin
aed172b8dd
feat: jwt KeyFunc external return ( #2809 )
...
* Update jwt.go
* Update jwt.go
2 years ago
ibrahim albarghouthi
3958f9d5c0
refactor: metadata supports key corresponding to multiple values ( #2772 )
...
* Adding Add/Values fn for transport and metadata layers, fixed tests and included tests to new functionaltieis, updated metadata middleware to append instead of hard set of key-values
* Remove useless function
* Linit fix
---------
Co-authored-by: Ibrahim Barghouthi <ibrahim.barghouthi@cenomi.com>
2 years ago
jessetang
f03f5f8988
fix(middleware/tracing): golang filename modify ( #2727 )
2 years ago
jessetang
9a973d29c2
fix: rectification of non-standard lint codes ( #2746 )
2 years ago
hoslo
19f008b483
feat: Add latency to the recover handler context ( #2653 )
...
* feat: Make recovey log information more abundant
* feat: Add latency to the recover handler context
* feat: Add latency to the recover handler context
* feat: Add latency to the recover handler context
---------
Co-authored-by: shuai_yang <shuai_yang@intsig.net>
2 years ago
LiuDui
08f37391e1
chore: clean up deprecated code ( #2648 )
2 years ago
Juan C. Yamacho H
d12498ed38
feat(middleware): redacter interface for logging ( #2564 )
2 years ago
Ccheers
8732b76386
fix(circuitbreaker): add WithCircuitBreaker to fix WithGroup is useless ( #2535 )
2 years ago
Jesse
54c6fb3631
test(middleware/auth/jwt): add test TestNewContextAndFromContext ( #2447 )
2 years ago
Jesse
b5482d1794
test(middleware/metadata): supplement test and modify code style ( #2448 )
2 years ago
jesse.tang
77d260241c
test(middleware/logging): TestExtractError ( #2443 )
2 years ago
jesse.tang
0ecc2b422f
style: modify declaring empty slices ( #2378 )
...
* fix: modify declaring empty slices
declare an empty slice to var s []int replace s :=[]int{}, https://github.com/golang/go/wiki/CodeReviewComments#declaring-empty-slices
* fix lint
2 years ago
jesse.tang
0e698b248a
cleanup: remove fmt and errors new err ( #2377 )
...
* cleanup: remove fmt and errors new err
* fix lint
* fix style
* modify global variable
2 years ago
jesse.tang
4d95050747
fix: fmt import ( #2379 )
2 years ago
jesse.tang
9737a3c5e4
fix: typo and grammatical errors ( #2368 )
...
* fix: grammar
* fix: grammar
* fix overrode
* translate to English
* translate to English
2 years ago
jesse.tang
f2a33929d0
fix: modify interface check way ( #2375 )
...
* fix: modify interface check way
* fix
2 years ago
Germiniku
cb6176dbbb
feat(tracing) custom tracer name ( #2310 )
...
* feat(log): add tencent cls
fix
update
* refactor(log) use the same interface name
* fix(log) tencent toString
* feat(tracing) custom tracer name
3 years ago
darkweak
c9fbb27b5b
tests(coverage): Increase middleware tests coverage ( #2165 )
...
* tests(coverage): Increase tests coverage
* Lint fix
3 years ago
Tony Chen
dccee86141
log: remove component logger to use global logger ( #2061 )
...
* remove component logger to user global logger
3 years ago
songzhibin97
92ba6a3209
Style:trace ( #2017 )
...
* Update metadata.go
* Update span.go
* Update statsHandler.go
3 years ago
songzhibin97
9e66ac2f5b
Update jwt.go ( #2016 )
3 years ago
Tony Chen
a72fc68ffd
feat: add error cause for statck trace ( #1910 )
...
* add error cause for statck trace
3 years ago
kwanhur
ac99a5c877
style(cmd/errors/examples/middleware/transport): fix common words' spelling mistakes ( #1872 )
...
* matchs to matches
* contraint to constraint
* resovle to resolver
* ser to set
Signed-off-by: kwanhur <huang_hua2012@163.com>
3 years ago
Zhen Wang
4dadafff90
fix(jwt): parse server custom claims ( #1817 )
...
* fix(jwt): parse server custom claims
* fix(jwt): parse server custom claims & use factory pattern
Co-authored-by: 王真 <zhen.wang@yo-star.com>
3 years ago
Tony Chen
6ec695064b
move container group to internal ( #1827 )
3 years ago
haiyux
18315303f0
deps:upgrade go mod version ( #1800 )
...
* deps:upgrade go mod version
3 years ago
haiyux
00c05e82a3
test:remove testify go mod ( #1766 )
...
* test:remove testify go mod
* tidy go mdo
* fix test
3 years ago
realityone
0ed2e0f379
feat(log): add global logger appliance, as process level default logger ( #1761 )
...
* add global logger appliance, as process level default logger
* replace DefaultLogger as global logger
3 years ago
Casper-Mars
76ab0baa56
feat(middleware/auth/jwt): add customer header ( #1752 )
3 years ago
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
3 years ago
china小宇
83ebf53b93
fix: circuitbreaker use client context ( #1679 )
3 years ago
spume
0f423be434
fix(middleware/tracing): modify kartos to kratos ( #1628 )
3 years ago
Evan
f9a132c9dd
feat: recovery logger with ctx ( #1601 )
...
Co-authored-by: 曾政 <zengz@weipaitang.com>
3 years ago
longxboy
056812e4b2
feat: add http transport interface ( #1533 )
...
feat: add http transport interface
3 years ago
Bear
5e88a20cd4
fix: 'tokenInfo' might have 'nil' or bad value ( #1534 )
...
* fix: 'tokenInfo' might have 'nil' or bad value
* fix: return the origin err
3 years ago
hotcha
7cc6565d01
fix typo ( #1509 )
3 years ago
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
3 years ago
Tony Chen
6e6526efd9
fix: middleware uses sentinel error ( #1463 )
4 years ago
Casper-Mars
ab5152dbe1
feat(middleware/auth): add auth middleware ( #1274 )
...
* add auth middleware
4 years ago
Tony Chen
b38c1145cf
fix(middleware/circuitbreaker): add breaker group ( #1453 )
...
* add breaker group
* update aegis to v0.1.1
4 years ago
yuemoxi
8823a1c618
feat:middleware selector add func match ( #1329 )
...
* feat:middleware selector add func match
4 years ago
Tony Chen
1ac50be94c
fix: sra to aegis ( #1420 )
...
* fix: sra to aegis
4 years ago
Kagaya
de55281108
feat(middleware/ratelimit): add rate limiter middleware ( #1271 )
...
* add ratelimit middleware
4 years ago
Kagaya
47f039792b
feat(middleware/breaker): add circuit breaker middleware ( #1299 )
...
* add breaker middleware
4 years ago
Windfarer
0ec3ff0b46
refactor: move plugins to contrib dir ( #1399 )
...
* move to contrib dir
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
4 years ago
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
4 years ago
包子
7b6332ee75
deps: middleware add separate go.mod and removes framework deps ( #1385 )
...
* deps: middleware add separate go.mod and removes framework deps
4 years ago
yuemoxi
12f17a3e2e
test(middleware/) add test ( #1379 )
...
* test(middleware/) add test
4 years ago
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
4 years ago