1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-28 03:57:02 +02:00

85 Commits

Author SHA1 Message Date
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
Shuhui Xu
ce04916181
transport/http: rename CodecForRequest func (#960)
Co-authored-by: 徐曙辉 <xushuhui@himango.cn>
2021-05-27 17:32:14 +08:00
longXboy
cc0214d78b mv balancer 2021-05-27 15:04:32 +08:00
longXboy
637af7f4b0 change filename 2021-05-26 16:46:21 +08:00
longxboy
28abad2268
Feat/http resovler (#953)
* add http resolver & balancer

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-05-26 16:43:59 +08:00
longxboy
eb958b2093
add path for rpc stub (#947)
* add path for rpc stub

* fix http body and response_body

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-05-26 14:23:43 +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
longxboy
9a3a02fc68
add http client rpc stub (#943)
* add http client
2021-05-24 23:01:26 +08:00
Tony Chen
15d0f22fb7
fix handler options (#941) 2021-05-22 13:46:30 +08:00
Tony Chen
4d0770a6a2
fix http handler (#939) 2021-05-22 11:14:55 +08:00
Tony Chen
b9f821c29f
transport/http: add http handler (#937)
* add http handler

* fix request error
2021-05-21 23:11:36 +08:00
Tony Chen
ef6e52d1ba
add multiple middlewares (#936) 2021-05-20 23:30:50 +08:00
Tony Chen
0dbcaa2443
clean transport (#920) 2021-05-17 20:18:53 +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
Tony Chen
7c6f53132f
api/errors: refactor to grpc statas (#880)
* refactor to grpc status
2021-04-28 23:09:27 +08:00
Cluas
8b875e43a5
binding: ignore unexpected field (#879) 2021-04-28 18:58:40 +08:00
Tony Chen
7c3212c306
transport/http: uses gRPC status to the HTTP error. (#870)
* uses gRPC status to the HTTP error.
2021-04-28 00:37:50 +08:00
Tony Chen
9806191b7f
errors: Error v2 (#860)
* refactor api errors
2021-04-25 20:19:23 +08:00
Tony Chen
e35fd9af6f
http/health: add health checker (#830)
* add health checker
2021-04-15 16:48:31 +08:00
Tony Chen
d92c1edc26
fix incorrect conversion between integer types (#824) 2021-04-12 23:43:10 +08:00
Cluas
3636179347
fix: typo and avoid collides with log package name (#819) 2021-04-10 09:43:08 +08:00
Mikado
4e2ae2077d
http: fix encodeError can't write response header (#782)
* http: fix encodeError can't write response header
* http: not handle Write error
2021-03-18 00:04:37 +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
Tony Chen
946e9ca814
fix http decode (#742)
* fix http decoder
2021-03-05 18:52:39 +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
chenzhihui
01d93ec61a fix bind vars 2021-02-20 18:43:36 +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