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

250 Commits

Author SHA1 Message Date
Monet Lee
7cd86eb077
fix: fix errors reported by Lint CI. (#3435)
* fix: fix errors reported by Lint CI.

* fix error reported by golangLintCI

* update field name to server. aviod copyloopvar check.

* fix lint problem.
2024-10-11 22:00:22 +08:00
Name
5b5c253d83
fix: add timeout configuration in grpc dial function (#3365)
Co-authored-by: huangzw <huangzw@2345.com>
2024-10-08 11:31:59 +08:00
jessetang
186ab88a62
chore: upgrade golangci-lint version to v1.60.3 and fix lint (#3414)
* chore: upgrade golangci-lint version to v1.60.3

* fix lint
2024-10-08 11:28:00 +08:00
Abhishek koserwal
e1f5dc42b1
feat: adding stream interceptor for logging middleware (#3359) 2024-09-18 09:59:45 +08:00
jessetang
908e6256a9
chore: remove non-existent test methods (#2770) 2024-09-09 11:11:08 +08:00
Name
57b961cba0
chore: replace the DisableDebugLog method, which is marked as Deprecated, with the PrintDebugLog method in the discovery test (#3364)
Co-authored-by: huangzw <huangzw@2345.com>
2024-08-19 10:56:34 +08:00
ThereWeGo
642790484c
feat(resolver/discovery): expose create watcher timeout error (#3392) 2024-08-19 10:53:07 +08:00
chaos
c550cdafb8
fix: filter redundant endpoints invalid (#3373) 2024-07-25 10:23:27 +08:00
Tony Chen
3198e0b83b
adds Set-Cookie method to the HTTP transport. (#3353) 2024-06-27 18:40:09 +08:00
Xingwang Liu
4aa4f7c7ca
The issue that the response header is not assigned a value is fixed (#3327) 2024-06-11 14:18:59 +08:00
kvii
26d7d5fa00
feat(transport/http): add unwrap method for returning underlying response writer. #3253 (#3265) 2024-03-22 23:37:51 +08:00
kvii
63344c3c97
fix: remove duplicate test codes. (#3187) 2024-03-15 11:12:23 +08:00
kvii
50cad79c96
fix(transport/http): no need to call EncodeURL twice (#3218) 2024-03-01 11:12:06 +08:00
bing liu
21de240843
feat: add server option for NotFoundHandler and MethodNotAllowedHandler (#3131)
Co-authored-by: Miles Liu <milesliu@birentech.com>
2024-01-05 11:01:17 +08:00
yonwoo9
1bb98b6a19
chore: fix words and modify some syntax declarations (#3113)
* chore:fix words

* fix:filter nodes len preallocate;replace func as cancelFunc; fix eureka mutex
2023-12-14 11:31:51 +08:00
ibrahim albarghouthi
1e4e37ad87
Support adding headers to before calloption header (#3038)
Co-authored-by: Ibrahim Barghouthi <ibrahim.barghouthi@cenomi.com>
2023-11-16 17:09:54 +08:00
youn
7d2c8ea051
remove context sync.Pool to avoid data races. (#3072)
* remove context sync.Pool to avoid data races.

* fix ci lint. response body must be close.

* run test server with timeout context
2023-11-07 14:04:50 +08:00
LinXiaoWei
3fc8fb7a0a
feat(transport/grpc): grpc client supports health check option (#3067) 2023-11-03 00:29:05 +08:00
Tony Chen
3109546ed0
feat(transport/http): add walk http handler (#2943)
* add walk http handler
2023-08-03 21:08:18 +08:00
LinXiaoWei
bffc1a0989
feat(transport): add endpoint option for server (#2904) 2023-07-06 19:59:02 +08:00
ibrahim albarghouthi
3958f9d5c0
refactor: metadata supports key corresponding to multiple values (#2772)
* Adding Add/Values fn for transport and metadata layers, fixed tests and included tests to new functionaltieis, updated metadata middleware to append instead of hard set of key-values

* Remove useless function

* Linit fix

---------

Co-authored-by: Ibrahim Barghouthi <ibrahim.barghouthi@cenomi.com>
2023-04-10 14:35:38 +08:00
jessetang
d470886977
refactor(transport): format import and init slice cap (#2741)
* fix(transport): format import and init slice cap

* fix lint: local-prefixes: github.com/go-kratos

---------

Co-authored-by: haiyux <haiyux@foxmail.com>
2023-03-26 22:54:08 +08:00
虫子樱桃
6a4d17d79a
add http.ResponseController type alias (#2713)
Co-authored-by: czyt <czyt@w.cn>
2023-03-26 22:51:38 +08:00
jessetang
9a973d29c2
fix: rectification of non-standard lint codes (#2746) 2023-03-21 15:33:08 +08:00
jessetang
0c2d2632ac
fix(transport/grpc/resolver/discovery/resolver.go): remove attributes.Attributes.New() (#2742) 2023-03-20 19:41:45 +08:00
包子
8af9ca33bd
feat: support grpc balancer health check (#2736) 2023-03-16 13:02:38 +08:00
包子
768ffd71d4
fix(grpc/balancer): fix the problem that the watch log cannot be closed (#2726) 2023-03-13 16:05:09 +08:00
jessetang
9ee4fcb48a
fix: remove repeat net/http package (#2708)
* fix: remove repeat package

* fix

* fix

* fix
2023-03-13 15:43:47 +08:00
包子
834b781ee2
feat: support load balance for streaming connection creation (#2669)
* feat: support load balance for streaming connection creation

* fix lint
2023-02-27 15:43:21 +08:00
jessetang
6330a5688e
chore: replace deprecated method (#2667) 2023-02-21 18:13:03 +08:00
cui fliter
239121155d
chore: fix comment (#2645)
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-02-01 10:12:26 +08:00
liyaopinner
35800916dc
feat: add grpc client stream interceptor opts (#2610)
Co-authored-by: yao.li <yao.li@cloudminds.com>
2023-01-16 10:53:26 +08:00
longxboy
bebea0c103
feat: add subset alg for instances (#2613)
* add subset alg for instances

* fix go build

* update go sum

* fix lint

* fix gofmt

* fix lint

* fix polaris

Co-authored-by: caoguoliang01 <caoguoliang01@bilibili.com>
2023-01-13 17:58:09 +08:00
桂后昌
b2689af39c
feat(transport/http): request body read multiple times (#2542)
* fix(transport/http): request body read multiple times

* feat(transport/http): request body read multiple times
2023-01-09 21:21:20 +08:00
180909
e22775cfcc
chore(transport): fix the test name (#2543) 2023-01-09 21:20:49 +08:00
包子
480b16b817
feat: grpc use the admin api (#2596)
* feat: grpc use the admin api
2023-01-02 21:32:29 +08:00
Aurélien Perrier
d779faf091
feat(transport/grpc): support custom healthcheck (#2541)
* feat(transport/grpc): support custom healthcheck

* fix: parameters grpc server

* fix(transport/grpc): optional CustomHealth

* fix(transport/grpc): useless argument
2022-11-28 17:29:22 +08:00
Jesse
54655e4b24
cleanup: use HTTP package methods replace GET POST DELETE... (#2412) 2022-10-18 21:40:16 +08:00
ruohone
d82d607c21
[Feature] add path prefix for http server (#2439)
* update http.NewServer
Add feature:option of mux router prefix path.

* remove nil check in
transport->http->PathPrefix option.

Co-authored-by: luozhihong <luozhihong@risenlighten.com>
2022-10-16 21:30:01 +08:00
jesse.tang
c5e86ca36d
style: kratos interface check (#2441)
* style: kratos interface check

* fix: kratos interface check
2022-10-12 19:21:03 +08:00
包子
8743f3e50c
deps: upgrade kratos version v2.5.1 (#2431)
* deps: upgrade kratos version v2.5.1

* fix goimport
2022-10-10 13:50:04 +08:00
jesse.tang
69fcd50c0a
feat: golangci add goimports local-prefixes (#2413)
* feat: golangci goimports local-prefixes

* fix lint

* fix lint
2022-10-10 11:27:01 +08:00
Tony Chen
a680321309
add custom binding (#2428)
* add custom binding

* fix test

* fix empty value
2022-10-10 10:51:06 +08:00
Tony Chen
468630cc4b
expose request from transport (#2427) 2022-10-09 16:50:09 +08:00
jesse.tang
0e698b248a
cleanup: remove fmt and errors new err (#2377)
* cleanup: remove fmt and errors new err

* fix lint

* fix style

* modify global variable
2022-09-27 14:12:09 +08:00
jesse.tang
4d95050747
fix: fmt import (#2379) 2022-09-27 14:08:08 +08:00
180909
add67beeb3
fix(http/binding): fix http encode url (#2400)
`/api/v1/[name]`
2022-09-24 12:21:58 +08:00
Tony Chen
2d325fd386
fix(http/binding): fix http encode url (#2392)
* fix(http/binding): fix http encode url
2022-09-21 11:31:51 +08:00
jesse.tang
080165f2ee
cleanup: modify deprecated field (#2380) 2022-09-20 11:24:30 +08:00
jesse.tang
9737a3c5e4
fix: typo and grammatical errors (#2368)
* fix: grammar

* fix: grammar

* fix overrode

* translate to English

* translate to English
2022-09-19 10:39:54 +08:00