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

Now we can only call `zrpc.SetClientSlowThreshold(threshold time.Duration)` to set zrpc's "client slow threshold value". But it works on all RPC clients. I hope each zrpc client can set zrpc ClientSlowThreshold...

stale

1. because resolver logic changed in grpc new versions 2. after idle, grpc close the builder and call Build method again

后面获取连接报错,提示 sql: unknown driver "pgx" (forgotten import?) postgres 包是 import _ "github.com/jackc/pgx/v5" 需要导入import _ "github.com/jackc/pgx/v5/stdlib" 才可以

stale

现在生成的 types.go 并没有实现自动校验的功能, 但是浏览代码的时候发现预留了接口和执行逻辑, ``` if valid, ok := v.(validation.Validator); ok { return valid.Validate() } else if val := validator.Load(); val != nil { return val.(Validator).Validate(r, v) } ``` 如果自己在types.go中实现...

stale

Current default tag only effective in request However, in some cases, it's very useful, such as set a pre-defined response which means have no errors ![image](https://user-images.githubusercontent.com/58617692/234050264-89c388cf-7f67-4bc8-940f-b86391f5db7f.png)

stale

Can rpc server support net.Pipe()? If rpc server support net.pipe, we can read websocket msg and send to net.pipe, so it can invoke rpc service. Refer: https://github.com/glerchundi/grpc-boomerang

stale

**Describe the solution you'd like** First , I know ` go run app.go-f etc/app.yaml` can switch config But I don't want to copy all the configuration in app-prod.yaml I want...

stale
kind/need-more-discussion
feature

Form support of gateway seems broken, in https://github.com/zeromicro/go-zero/blob/3a66fc038fcbe89e4af10ccdb3813be9b0e7e292/gateway/internal/requestparser.go#L27-L29 All request should be processed by **getBody** function, and only those with **nil body** or **Content-Length value equals to zero** will go...

stale