1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00
Commit Graph

830 Commits

Author SHA1 Message Date
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 v2.0.0-rc1 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
Tony Chen 2e4bb11f00 remove proto gopath (#896) 2021-05-06 16:45:49 +08:00
Tony Chen eeab979d5f remove errors generator (#892) 2021-05-02 00:00:44 +08:00
Tony Chen 801f89b6db log: rename Print to Log (#886)
* rename Print to Log
v2.0.0-beta4
2021-05-01 01:15:30 +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
Joe 21d9ff2c39 refactor: format new.go (#885) 2021-04-29 18:45:20 +08:00
Tony Chen d85f5e9ae1 encoding/json: fix nil value (#884)
* fix nil value
2021-04-29 15:49:44 +08:00
Tzz 18ea3a6a47 Fix: marshalJson error, when values contains map[interface{}]interface{} (#883)
Co-authored-by: tzz <tzz.wannamoney@qq.com>
2021-04-29 14:57:13 +08:00