hertz
hertz copied to clipboard
Go HTTP framework with high-performance and strong-extensibility for building micro-services.
#### What type of PR is this? #### Check the PR title. - [ ] This PR title match the format: \(optional scope): \ - [ ] The description of...
**Describe the bug** There are currently two thrift files, with the namespaces respectively: `namespace go admin.b` `namespace go b` When using the "hz update" command to update at this time,...
**Describe the bug** import "google/protobuf/empty.proto"; service ClientService { rpc Stat(google.protobuf.Empty) returns(common.BaseRespBody) { option (api.get) = "/client/stat"; } } 服务里面使用了google.protobuf.Empty,然后通过hz工具生成go文件,handler文件里面生成了诡异的 emptypb "turing/biz/model/google.golang.org/protobuf/types/known/emptypb" **To Reproduce** Steps to reproduce the behavior: 1. Go...
#### What type of PR is this? chore #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...
**Describe the Question** I use hertz thrift code generation for my project and I meet a problem about binding param of customed Type. I mark the customed type with "required"...
#### What type of PR is this? #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this PR...
#### What type of PR is this? refactor #### Check the PR title. - [ ] This PR title match the format: \(optional scope): \ - [ ] The description...
#### What type of PR is this? optimize #### Check the PR title. - [ ] This PR title match the format: \(optional scope): \ - [ ] The description...
如何感知请求已结束?
比如请求中间突然断开了,而此时有一个任务正在执行(如在远程pod上执行一段命令),希望感知到这次断开,并做出对应的清理工作,我看了gin框架使用的net/http是支持该特性的:ctx.Done(), 给每个请求都创建了一个channel 但翻了下hertz以前的issue,发现你们觉得该特性会带来很大性能开销,类似场景hertz有无更好的解决思路?
#### What type of PR is this? optimize #### Check the PR title. - [x] This PR title match the format: `(optional scope): `. - [x] The description of this...