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

49 Commits

Author SHA1 Message Date
包子
48851a1ffd
add examples/log/zap ()
* add examples/zap/log
2021-06-03 22:08:42 +08:00
Tony Chen
5ed0c006a0
clean access logging () 2021-06-03 13:49:13 +08:00
Tony Chen
bef6d8d818
transport/http: clean http client ()
* clean http client
2021-06-01 14:43:31 +08:00
Tony Chen
f83438b693
http/health: remove health handler ()
* remove health handler & example
2021-06-01 11:26:27 +08:00
Windfarer
839aef1ae2
trace config () 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 ()
* fix error code and regenerate proto
2021-05-26 20:05:34 +08:00
longxboy
28abad2268
Feat/http resovler ()
* add http resolver & balancer

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-05-26 16:43:59 +08:00
longxboy
c1e5b1c17b
add protojson () 2021-05-26 14:45:12 +08:00
longxboy
eb958b2093
add path for rpc stub ()
* 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 ()
* refactor status code
2021-05-25 15:01:53 +08:00
Tony Chen
cc0221b5ce
errors: add errors coder ()
* 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 ()
* 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 ()
* 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 ()
modify dockerfile
modify the build process
2021-05-22 13:41:16 +08:00
Tony Chen
4d0770a6a2
fix http handler () 2021-05-22 11:14:55 +08:00
Tony Chen
b9f821c29f
transport/http: add http handler ()
* add http handler

* fix request error
2021-05-21 23:11:36 +08:00
Tony Chen
ef6e52d1ba
add multiple middlewares () 2021-05-20 23:30:50 +08:00
包子
65d8b48f9a
add examples/traces () 2021-05-19 13:43:30 +08:00
Tony Chen
ba5b8d1ee3
api/metadata: clean package ()
* clean api proto
* fix nil trace_id
2021-05-18 10:29:33 +08:00
Tony Chen
e989bb04e3
add yaml encoder () 2021-05-17 21:52:23 +08:00
Tony Chen
d78eb3ee4b
log: add level printer ()
* 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 ()
* 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 () 2021-04-29 22:06:13 +08:00
opensite
83eba7083a
examples/blog:update the trace to be consistent with the official () 2021-04-29 22:06:01 +08:00
Tony Chen
7c6f53132f
api/errors: refactor to grpc statas ()
* refactor to grpc status
2021-04-28 23:09:27 +08:00
opensite
8dc92ef8b4
examples/blog:keep the grpc and http error consistent () 2021-04-28 14:31:23 +08:00
包子
b8d5d709e9
middleware/logging add traceid to the printed log,modify the example code and update the dependent version ()
* middleware/logging add traceid to the printed log,modify the example code and update the dependent version

* Fix the problem that the configuration could not use arrays
2021-04-28 14:30:51 +08:00
Tony Chen
7c3212c306
transport/http: uses gRPC status to the HTTP error. ()
* uses gRPC status to the HTTP error.
2021-04-28 00:37:50 +08:00
Tony Chen
3780f70c91
examples: update mod ()
* fix examples errors
2021-04-25 22:26:31 +08:00
miya
cb68659cff
ws demo ()
* examples/ws: ws demo
2021-04-22 11:03:56 +08:00
Windfarer
fc539738f1
examples/blog: add cleanup ()
* add cleanup
2021-04-19 11:55:02 +08:00
伊文龙
46acad3400
Fix README file of the blog example. () 2021-04-16 21:54:31 +08:00
伊文龙
2a47af33c0
Add README file for http & helloworld examples ()
* Add readme for helloworld example.

* Add readme file for http example.
2021-04-16 00:06:31 +08:00
Tony Chen
e35fd9af6f
http/health: add health checker ()
* add health checker
2021-04-15 16:48:31 +08:00
另维64
089cf9d0cb
doc: update readme () 2021-04-14 18:00:21 +08:00
miya
e1fe688e0c
examples/registry: nacos () 2021-04-14 16:32:09 +08:00
Tony Chen
1afbf70184
examples: add http examples ()
* add http examples
2021-04-12 21:37:16 +08:00
Mikado
1b16831cf6
adjust trace middleware and fix blog's trace middleware use case ()
* middleware: adjust trace middleware

* examples: fix blog's trace middleware use case
2021-03-18 20:10:43 +08:00
Tony Chen
2eaeda0b17
remove unused () 2021-03-18 10:57:05 +08:00
Tony Chen
5a8acec808
examples: fix dir structure ()
* fix dir structure
2021-03-15 17:10:32 +08:00
Tony Chen
e335c1304a
examples: add etcd registry ()
* add etcd example
2021-03-12 00:59:46 +08:00
Windfarer
5546be9188
fix example ()
* fix example
2021-03-11 23:42:28 +08:00
Tony Chen
a4409adf16
fix interface defines ()
* fix interface defines
2021-03-11 23:26:07 +08:00
longxboy
f526d6b975
add exmaple consul registry () 2021-03-09 22:02:18 +08:00
Tony Chen
98b5903113
examples ()
* move examples
2021-03-05 23:49:25 +08:00