1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-07 23:02:12 +02:00
Commit Graph

112 Commits

Author SHA1 Message Date
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
Sycamor
7f835db398
chore: change nil slice to maked slice (#967)
Co-authored-by: Sycamor <zhangqiang@acnet.co>
2021-05-28 21:05:17 +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
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
ba5b8d1ee3
api/metadata: clean package (#926)
* clean api proto
* fix nil trace_id
2021-05-18 10:29:33 +08:00
Tony Chen
e989bb04e3
add yaml encoder (#924) 2021-05-17 21:52:23 +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
Jason C.H
e7926b989d
Import direct resovler for grpc client (#913) 2021-05-15 16:15:08 +08:00
longXboy
d8edff0b84 fix api metadata 2021-05-11 16:06:07 +08:00
Cluas
7e7bbdbed6
encoding/xml: add xml encode support (#905)
* encoding/xml: add xml encode support

* encoding/xml: avoid nil pointer panic

* action: avoid go get golint pollution go.mod
2021-05-11 11:36:20 +08:00
longxboy
0e0be64cba
add api metadata (#901)
* add api metadata
2021-05-10 10:44:39 +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
opensite
4f1d2f056f
feat:add grpc reflection register (#865) 2021-04-26 22:48:39 +08:00
opensite
b9e905c1af
transport/grpc: add health check (#861)
* add grpc healthcheck
2021-04-26 13:12:27 +08:00
Tony Chen
3780f70c91
examples: update mod (#862)
* fix examples errors
2021-04-25 22:26:31 +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
miya
c673439d96
resolver/discovery: fix endpoint, scheme don't match grpc (#831) 2021-04-14 11:37:20 +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
Tony Chen
db98d59b11
add default round_robin to grpc balancer (#790) 2021-03-18 16:03:19 +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
Tony Chen
a4409adf16
fix interface defines (#760)
* fix interface defines
2021-03-11 23:26:07 +08:00
longxboy
f526d6b975
add exmaple consul registry (#754) 2021-03-09 22:02:18 +08:00
libi
26cf7c80ad
fix discovery resolver watch goroutine leak (#750)
* fix discovery resolver watch goroutine leak
2021-03-06 18:06:20 +08:00
Tony Chen
8722894939
fix registry interface (#747) 2021-03-05 22:57:28 +08:00
Tony Chen
f86c91849b
fix lint check (#746) 2021-03-05 22:40:38 +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
邓小川
27dc0d45df
fix resolver (#740) 2021-03-05 19:15:19 +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
chenzhihui
b97c3c4160 fix registry option 2021-03-03 23:09:35 +08:00
Tony Chen
496edc6fb1
Http/refactor register service (#734)
* refactor http handle
2021-03-03 22:22:59 +08:00
longXboy
f984dc5c6d rename naming 2021-02-28 20:40:05 +08:00
longXboy
4444e7a638 fix to discoverer 2021-02-28 15:32:45 +08:00
longXboy
8f064855d9 split naming registry 2021-02-28 13:39:45 +08:00
Tony Chen
1fd1332c92
fix middleware errors (#717) 2021-02-23 14:38:37 +08:00
Tanghui Lin
ef996c826a
add context for registry (#716)
* add context for registry
2021-02-23 10:20:00 +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