Lavi
Lavi
Please see the FAQ in our main README.md before submitting your issue. ### What problem is the feature used to solve? We hope to pass startup parameters when using kratos...
Example ```golang gomonkey.ApplyFunc(NewClient, func() *Client { // The original NewClient will be used here, but it has been actually replaced return NewClient() }) ``` Calling NewClient to create a instance...
### Skill Name ElasticSearch ### Why? It's a widely used full-text search and analytics engine. [Offical Website](https://www.elastic.co/) ### Reference Image 
反馈一个作为用户有点迷惑的地方,我在联调一个耗时较长(约30s)的接口时,发现在 ctx 中设置的超时不生效,永远是2秒报超时,查看源码发现是 kratos 封装的 grpc 默认带了 2s 超时参数,通过 UnaryIntercepter 的方式 ”帮助“ 用户设置超时。 我觉得 grpc.WithTimeout 给 grpc.Dial 带来了一些歧义,一是在 Dial 设置的 timeout 却在 Perform 时生效, 二是 Dial 和 Perform 都有 ctx...
### Proposal description Related to #2593 ### Implementation code ```diff # file: cmd/protoc-gen-go-http/template.go # line: 23 func Register{{.ServiceType}}HTTPServer(s *http.Server, srv {{.ServiceType}}HTTPServer) { r := s.Route("/") + Register{{.ServiceType}}HTTPRouter(r, srv) + }...
#### Description (what this PR does / why we need it): Middleware matching rule is weird. It ignores prefix matching if there is an exact matching. #### Which issue(s) this...
Hi there. When I'm writing a POST method with an empty request body, protoc-gen-openapi generates a required `requestBody` ```protobuf rpc Logout(google.protobuf.Empty) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/api/logout"...
## Your Question Looking to do something like ```sql INSERT INTO `table` (...) VALUES (...) ON DUPLICATE KEY UPDATE `points`=`points` + 10 ``` I found this in [the official docs](https://gorm.io/docs/create.html#Upsert-x2F-On-Conflict)...
## Your Question `do.Returning` receives generic parameter types `(value interface{}, columns ...string)` Should it be designed as `(value *models.Xxx, columns ...field.Expr)`? ## The document you expected this should be explained...
# Reproduce Link https://codesandbox.io/p/devbox/vigilant-mcclintock-dgvccf?file=%2Fsrc%2Flayouts%2FLayout.astro%3A21%2C13 # Description Using `dedent` anywhere with `astro@v4` will cause an error `__vite_ssr_import_1__.default is not a function`