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

46 Commits

Author SHA1 Message Date
Tony Chen
dccee86141
log: remove component logger to use global logger (#2061)
* remove component logger to user global logger
2022-05-27 16:29:07 +08:00
Tony Chen
6eae1745bd
http: handle default mux (#2033) 2022-05-23 23:52:25 +08:00
包子
558ef4ebae
fix(transport): fix the problem that the context is not delivered correctly (#1906) 2022-04-01 10:52:32 +08:00
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
2022-01-12 15:34:49 +08:00
haiyux
3625634d3c
feat(transport):add grpc and http with listen (#1729)
* feat(transport):add grpc and http with listen
2021-12-30 20:38:22 +08:00
seasrain
423b60b330
fix:http server start panic when use Endpoint (#1492) 2021-09-18 11:24:02 +08:00
seasrain
798adbff5e
fix:http rehister url lack / (#1464)
* fix: set strictSlash true
2021-09-12 00:45:22 +08:00
seasrain
8b1086ad56
fix: optimizate with context (#1460)
* fix: optimizate with context
2021-09-10 21:44:41 +08:00
letian
4bdafa6393
feat: add http header handler (#1461) 2021-09-10 17:57:07 +08:00
Tony Chen
aed6af7acc
fix http server handler (#1456) 2021-09-09 23:12:48 +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
zwhyb
8f4e78b47d
grpc‘s secure discovery (#1270)
* add gprc secure discovery

* add http insecure filter
2021-07-28 23:10:02 +08:00
Tony Chen
5ca42fe921
feat(transport): add transport tls config (#1267)
* add http tls config

* add grpc tls config

* add examples tls

* fix resolver parseTarget

* support https for discovery

* add isSecure
* clean code

Co-authored-by: longXboy <longxboyhi@gmail.com>
Co-authored-by: 包子 <baozhecheng@foxmail.com>
2021-07-28 13:36:15 +08:00
longXboy
078ca6bc9b add sub router for http 2021-07-18 19:30:39 +08:00
opensite
f27047c05b
style(transport): remove duplicate get path code (#1188)
transport/http remove duplicate get path code for filter
2021-07-14 21:52:44 +08:00
dachang
e45caab322
http stop should use ctx (#1131) 2021-06-30 18:01:56 +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
Tony Chen
59f54b2661
Revert/root ctx v2 (#1088)
* Revert "remove app info (#1081)"

This reverts commit 1dab58616b.

* add http base ctx

Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-06-20 23:00:27 +08:00
Tony Chen
30334dc47c
transport/http: rename route to router (#1082)
* rename route to router
2021-06-19 16:02:07 +08:00
Tony Chen
1dab58616b
remove app info (#1081) 2021-06-19 15:40:28 +08:00
Tony Chen
e5e7832306
fix cors filter (#1080) 2021-06-19 09:53:34 +08:00
longxboy
8baa2ede4b
add path pattern for http (#1076)
* add path pattern for http
2021-06-17 17:34:27 +08:00
longxboy
60b1e593f1
add http transport (#1060)
* add http transport

* delete method and path
2021-06-15 11:40:41 +08:00
Tony Chen
7f72b72ddb
fix endpoint extract (#1061) 2021-06-15 11:39:28 +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
Tony Chen
42b60381c9
transport: clean endpoint listen (#989)
* fix endpoint listen
2021-06-01 19:56:46 +08:00
Tony Chen
079f11fb50
add endpoint context (#979) 2021-06-01 12:02:22 +08:00
longxboy
e1d6377542
add feat endpoint (#972)
* add feature endpoint
2021-05-31 16:10:17 +08:00
longXboy
493373dc13 fix addr listen bug 2021-05-31 10:59:03 +08:00
longXboy
63191930ed fix server info bug 2021-05-30 21:43:41 +08:00
Tony Chen
149fc0195e
kratos: add application info (#968)
* add application info

* add base context

* add client target
2021-05-29 23:52:05 +08:00
Tony Chen
e7ddc1ba1e
Change the default func to public (#966) 2021-05-28 19:47:24 +08:00
Tony Chen
4cb3fd62e3
rename Registry to Endpointer (#964) 2021-05-28 15:30:55 +08:00
Tony Chen
41ea1fbc76
fix data race (#963)
* fix data race
2021-05-28 15:08:25 +08:00
Tony Chen
d78eb3ee4b
log: add level printer (#918)
* add level printer

* fix helper args

* fix test

* Update README.md
2021-05-17 16:34:28 +08:00
storyicon
18752bf0ec
set transport.kind to be strongly typed (#728)
Signed-off-by: storyicon <storyicon@foxmail.com>
2021-03-05 21:09:02 +08:00
Tony Chen
330d878aa3
http: fix request context (#745)
* fix request context
* fix recovery logger
2021-03-05 19:13:31 +08:00
LI Tongyu
f8eeb9f388
fix(http): fix typo in transport/http (#741)
1. modify HanldePrefix to HandlePrefix in transport/http/server.go

Co-authored-by: 李彤宇 <litongyu@git.bilibili.co>
2021-03-05 16:21:23 +08:00
Tony Chen
496edc6fb1
Http/refactor register service (#734)
* refactor http handle
2021-03-03 22:22:59 +08:00
Tony Chen
1fd1332c92
fix middleware errors (#717) 2021-02-23 14:38:37 +08:00
chenzhihui
2a011cd288 add prefix handle to register other router 2021-02-20 19:12:09 +08:00
Tony Chen
c7827ff701
fix http middleware (#710)
* fix http middleware
2021-02-18 16:53:59 +08:00
chenzhihui
4c67fa1235 fix http.Server closed 2021-02-17 22:54:41 +08:00
chenzhihui
3566386a89 init v2 2021-02-17 17:14:47 +08:00