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

838 Commits

Author SHA1 Message Date
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
Tony Chen
9b31e6293b
app: fix app ready (#961)
* fix app ready
2021-05-27 22:16:43 +08:00
longXboy
b32e7d6e70 fix swagger api 2021-05-27 21:19:47 +08:00
Windfarer
839aef1ae2
trace config (#956) 2021-05-27 19:18:14 +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
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
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
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
Tony Chen
15d0f22fb7
fix handler options (#941) 2021-05-22 13:46:30 +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
webliupeng
248d30f068
fix incorrect return type in service template (#935) 2021-05-20 17:44:01 +08:00
包子
65d8b48f9a
add examples/traces (#932) 2021-05-19 13:43:30 +08:00
dowenliu-xyz
aab0d5aa43
fix tracing: call tracer.End() in closure. (#928) 2021-05-18 20:37:49 +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
5d36b6e67c
kratos: fix: unable to get the correct port when registering the service (#925)
* fix: unable to get the correct port when registering the service
2021-05-17 23:04:22 +08:00
Tony Chen
e989bb04e3
add yaml encoder (#924) 2021-05-17 21:52:23 +08:00
Tony Chen
2de0fa330c
remove event interface (#923) 2021-05-17 20:54:54 +08:00
Tony Chen
0dbcaa2443
clean transport (#920) 2021-05-17 20:18:53 +08:00
longxboy
8f8b861f7d
add default propagation for trace (#919)
* add default propagation for trace

* add trace carrier
2021-05-17 17:23:41 +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
dowenliu-xyz
24b1ca6bc3
tracing: set tracing status after request. (#911) 2021-05-15 16:18:52 +08:00
Jason C.H
e7926b989d
Import direct resovler for grpc client (#913) 2021-05-15 16:15:08 +08:00
包子
6791cd665b
Modify cmd new project terminal output style (#908)
* Modify cmd new project terminal output style

* Modify kratos cmd create project handling abnormal situations

* Modify cmd new project terminal output style
2021-05-13 14:57:35 +08:00
包子
0e4a057027
modify kratos cmd new project (#907)
* Modifying the kratos cmd new project does not use the go git module, but uses the native git command
2021-05-12 22:33:26 +08:00
longXboy
42313e9368 fix api proto import path 2021-05-11 16:18:52 +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
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
longXboy
86193a2a5f fix api meta proto path 2021-05-10 21:39:46 +08:00
longxboy
0e0be64cba
add api metadata (#901)
* add api metadata
2021-05-10 10:44:39 +08:00
miya
dc0f4ed9b8
mw/logging:enhance req.(fmt.Stringer) (#898) 2021-05-06 20:51:38 +08:00
Tony Chen
eed0ac7d4a
add layout env (#897) 2021-05-06 19:52:18 +08:00