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

46 Commits

Author SHA1 Message Date
hshe 7aa9f352f8 fix:internal/host:选择ip未判断ip是否可用&&返回序号最小的ip(#1686) (#1687) 2021-12-16 22:41:44 +08:00
longxboy 91714bcd34 test: add transport grpc test (#1580)
* add transport grpc test

* fix node
2021-10-22 15:57:01 +08:00
海雨 fecfb7dc86 test: arrangement test proto and add test (#1567)
* arrangement test proto and add test
2021-10-20 21:43:44 +08:00
letian 2ce8f22fac fix bug of host.Extract (#1481) 2021-09-15 18:02:26 +08:00
seasrain 1dd8786ed9 fix:move test proto file to internal (#1471)
* fix:move test proto file to internal
2021-09-14 15:54:43 +08:00
letian fa54a1dd3a feat: Support custom status code conversion from HTTP and gRPC. (#1410)
* feat: Support custom status code conversion from HTTP and gRPC.

Co-authored-by: Letian Yi <yiletian@webull.com>
2021-09-05 23:25:33 +08:00
Kagaya f7588a47de fix: ci lint error (#1391)
* fix lint check

* fix lll lint error

* fix build error

* fix gomnd

* fix shadow declaration

* add make test command

* update
2021-08-31 10:14:57 +08:00
包子 7b6332ee75 deps: middleware add separate go.mod and removes framework deps (#1385)
* deps: middleware add separate go.mod and removes framework deps
2021-08-30 23:07:31 +08:00
yuemoxi 0dfab173f9 fix:modify encoding test proto path (#1388)
* fix:modify encoding test proto  path

* fix

* fix

* fix
2021-08-28 22:39:51 +08:00
yuemoxi a67ec16bf0 test(internal/context,internal/host) add test (#1334)
* test(internal/context,internal/host) add test
2021-08-25 23:56:28 +08:00
包子 925e55a04d fix(config): replace text with "${}" only (#1375)
* fix(config): replace text with "${}" only
2021-08-25 23:52:25 +08:00
Xudong Cai b44e47b087 refactor: optimize the code and use golangci-lint to check for any errors (#1298)
* feat: optimize the code and use golangci-lint to check for any errors

* fix: TestLogger unit test
2021-08-16 10:35:08 +08:00
yuemoxi 4b6ab21ae5 test(internal/) add test (#1331) 2021-08-14 00:52:00 +08:00
月墨夕 86621a9573 test(internal/context,middleware) add test (#1326)
* add: test
2021-08-13 14:11:08 +08:00
Tony Chen bc35f20228 feat(endpoint): add endpoint parser (#1273)
* feat(endpoint): add endpoint parser

* fix parseTarget ut

* fix insecure testing
2021-07-29 10:11:38 +08:00
zwhyb 8f4e78b47d grpc‘s secure discovery (#1270)
* add gprc secure discovery

* add http insecure filter
2021-07-28 23:10:02 +08:00
longXboy 14d383bc6f add v2.0.0 2021-07-08 13:54:09 +08:00
longxboy 23a7f15541 add form for codec (#1158)
* add form for http codec
2021-07-08 13:05:21 +08:00
longxboy 7530fadde0 Feat/fix examples (#1129)
remove github protobuf dependency
2021-06-30 15:33:08 +08:00
Tony Chen d4d6925cd0 cmd/protoc-gen-go-http: fix http protoc to bind query_string (#1126)
* fix http protoc to bind query_string

Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-06-30 14:13:28 +08:00
longxboy 545ffd1084 add response header (#1119)
* add response header

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-29 15:33:18 +08:00
longxboy 87eb5ed5c0 add http ip port support (#1115)
* add http ip port support

* fix example
2021-06-28 10:20:48 +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
Tony Chen 1dab58616b remove app info (#1081) 2021-06-19 15:40:28 +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 7f72b72ddb fix endpoint extract (#1061) 2021-06-15 11:39:28 +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 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 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 af14c07762 fix http util (#995)
* fix http util

* fix type
2021-06-02 23:36:47 +08:00
longXboy 156146036b fix test 2021-05-31 17:17:33 +08:00
longXboy f69cf59537 fix loopback addr 2021-05-31 16:55:30 +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
longXboy cc0214d78b mv balancer 2021-05-27 15:04:32 +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
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 d8edff0b84 fix api metadata 2021-05-11 16:06:07 +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
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
Cluas e1b9dd5244 host: optimize isPrivateIP (#817) 2021-04-08 17:45:11 +08:00
Tony Chen f86c91849b fix lint check (#746) 2021-03-05 22:40:38 +08:00
chenzhihui 3566386a89 init v2 2021-02-17 17:14:47 +08:00