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

69 Commits

Author SHA1 Message Date
包子
493c11929f
fix(examples): rename config to cfg in blog (#1122) 2021-06-29 14:57:15 +08:00
包子
725d60134c
examples: add examples/middleware (#1121)
* examples: add examples/middleware

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-28 23:50:30 +08:00
包子
8d30b6d489
update examples (#1108)
* update examples/README.md and delete the middleware.Chain contained in examples

* update examples/README.md
2021-06-25 10:10:50 +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
opensite
4236b40c94
feat(cmd): support the validate pb file generate for kratos proto client command (#1094)
kratos client 命令 增加 validate pb 文件生成

Co-authored-by: lishuangxi <lishuangxi@bjx.cloud>
2021-06-22 20:33:00 +08:00
包子
6dc8300ee8
add examples/validate (#1093) 2021-06-22 10:21:39 +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
包子
7b41acf241
add examples/errors (#1077)
* addd examples/errors
2021-06-17 17:57:23 +08:00
longxboy
8baa2ede4b
add path pattern for http (#1076)
* add path pattern for http
2021-06-17 17:34:27 +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
7f2e3becbe
clean metrics (#1049)
* clean metrics

* remove recovery middleware
2021-06-13 15:38:33 +08:00
Tony Chen
8c26c8c328
examples: add cors example (#1048)
* add cors example
2021-06-13 15:21:29 +08:00
包子
1d0c958a04
add examples/metrics (#1046)
* add examples/metrics
2021-06-13 14:49:28 +08:00
Tony Chen
40e34b32f1
clean examples (#1041)
* clean examples
2021-06-13 08:42:26 +08:00
Tony Chen
2729caeecf
http/binding: rename encode url (#1039)
* rename binding url
2021-06-13 00:56:01 +08:00
Tony Chen
eca0f35cb5
transport/http: add vars to http context (#1037)
* add vars to http context

* add query to http context

* remove http deps

* clean request decoder
2021-06-12 22:21:54 +08:00
Tony Chen
00088f644a
examples: clean examples (#1036)
* clean examples

* update yaml to v3
2021-06-12 20:20:18 +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
d23a91650a
fix log print (#1021) 2021-06-09 11:14:44 +08:00
包子
48851a1ffd
add examples/log/zap (#1001)
* add examples/zap/log
2021-06-03 22:08:42 +08:00
Tony Chen
5ed0c006a0
clean access logging (#996) 2021-06-03 13:49:13 +08:00
Tony Chen
bef6d8d818
transport/http: clean http client (#981)
* clean http client
2021-06-01 14:43:31 +08:00
Tony Chen
f83438b693
http/health: remove health handler (#978)
* remove health handler & example
2021-06-01 11:26:27 +08:00
Windfarer
839aef1ae2
trace config (#956) 2021-05-27 19:18:14 +08:00
longXboy
a24bcdff45 fix nacos 2021-05-27 14:34:33 +08:00
longXboy
c61cd27a5f fix go mod 2021-05-27 13:05:48 +08:00
Tony Chen
7dec80ccfd
fix error code and regenerate proto (#954)
* fix error code and regenerate proto
2021-05-26 20:05:34 +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
c1e5b1c17b
add protojson (#952) 2021-05-26 14:45:12 +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
opensite
44c2641da2
example/blog: add the usage example of validate in proto file for blog (#942)
* example/blog: add the usage example of validate in proto file for blog

* example/blog: use validator middleware instead of calling validate in every method that needs to be validated
2021-05-23 13:03:10 +08:00
包子
e2031dcfe6
remove example/traces/go.mod (#940)
modify dockerfile
modify the build process
2021-05-22 13:41:16 +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
包子
65d8b48f9a
add examples/traces (#932) 2021-05-19 13:43:30 +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
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
longXboy
42313e9368 fix api proto import path 2021-05-11 16:18:52 +08:00
Cluas
eb732c4de0
internal/http: optimize support more content_type (#904)
* internal/http: optimize support more type

* internal/http: add bound case

* examples: fix go.sum

* examples: fix go mod
2021-05-11 10:21:59 +08:00
longXboy
a83d396b74 fix example build 2021-05-10 22:09:39 +08:00
miya
f81f95cbbc
example/blog: enhance ctx (#887) 2021-04-29 22:06:13 +08:00
opensite
83eba7083a
examples/blog:update the trace to be consistent with the official (#888) 2021-04-29 22:06:01 +08:00
Tony Chen
7c6f53132f
api/errors: refactor to grpc statas (#880)
* refactor to grpc status
2021-04-28 23:09:27 +08:00
opensite
8dc92ef8b4
examples/blog:keep the grpc and http error consistent (#873) 2021-04-28 14:31:23 +08:00