go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

A cloud-native Go microservices framework with cli tool for productivity.

Results 436 go-zero issues
Sort by recently updated
recently updated
newest added

提供一个类似这种的方法 func GetDefaultGatewayConn(name string) []*grpc.ClientConn { } // rpc logic 可以反向推送给api for _, v := range grpcCons { //todo } 目的:可以方便去做分布式ws 集群的推送

stale

在流控和熔断中间件内部 我看到的如果出现错误 会改状态码为503等,我感觉返回503不细致。如果我想拦截改写返回值应该怎么做?

使用etcd作为注册中心时,如果中间出现网络问题(或者etcd重启),服务不能重新注册到注册中心

middleware can report trace when server receive request. Some web/rpc framework support middleware or configuration to report trace. For example, hertz、gorilla/mux、kitex - https://github.com/hertz-contrib/obs-opentelemetry - https://github.com/kitex-contrib/obs-opentelemetry - https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/instrumentation/github.com/gorilla/mux/otelmux/mux.go

如在handler.tpl中 `package {{.PkgName}} import ( "net/http" "{{当前项目名}}/pkg/utils" // 导入自定义工具包 {{.ImportPackages}} ) ` 谢谢

stale
answered

**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd...

stale
answered

https://github.com/zeromicro/go-zero/blame/f1ed7bd75de44ba1491a2627c36c86e649ae277e/core/stat/internal/cgroup_linux_test.go#L35 I am testing on macOS and testing in Docker. Assert does not throw an error, make the test fails. Environment information: ``` # mount | grep cgroup cgroup on...

When I use go-zero, I added a route "ok". After starting the service, even without any client requests, the memory usage keeps slowly fluctuating and increasing. After approximately a day,...