Releases: zeromicro/go-zero
Releases · zeromicro/go-zero
Release v1.1.6
- support websocket, check example at https://github.com/zeromicro/zero-examples/tree/main/chat
- support customizing time format in logx
- support postgresql
- support goctl mongodb model generation
- minor improvements
Release v1.1.5
-
Framework:
- support disabling stat logs via stat.DisableLog()
- change zrpc default timeout to 2s, set 0 to disable timeout
- minor improvements
-
goctl:
- support unique indexes on multiple columns in sql+cache code generation
- minor improvements
Release v1.1.4
framework:
- improvements on rolling window algorithm
- improvements on shutdown callbacks on windows
goctl:
- make goctl error more accurate
- fix minor bugs
Release v1.1.3-beta
framework:
- improvements on rolling window algorithm
- improvements on shutdown callbacks on windows
goctl:
- make goctl error more accurate
- fix minor bugs
Release v1.1.2
- rest multiple RunOption supported
- race condition fixed in PeriodicalExecutor
- support http.Flusher in http.ResponseWriter implementations
- support env vars in config file, use
${VAR}
Release v1.1.1
Dockerfile
generation improvements ingoctl
- minor improvements in
goctl
Release v1.1.0
goctl:
- require
go 1.14
- plugins supported in api code generation
- use
--plugin flag
to specify plugin executable - support customized parameters in plugins
- check the example in https://github.com/zeromicro/goctl-android
- use
- support kubernetes deployment yaml file generation
$ goctl kube deploy NAME: goctl kube deploy - generate deployment yaml file USAGE: goctl kube deploy [command options] [arguments...] OPTIONS: --name value the name of deployment --namespace value the namespace of deployment --image value the docker image of deployment --secret value the image pull secret --requestCpu value the request cpu to deploy (default: 500) --requestMem value the request memory to deploy (default: 512) --limitCpu value the limit cpu to deploy (default: 1000) --limitMem value the limit memory to deploy (default: 1024) -o value the output yaml file --replicas value the number of replicas to deploy (default: 3) --revisions value the number of revision history to limit (default: 5) --port value the port of the deployment to listen on pod (default: 0) --nodePort value the nodePort of the deployment to expose (default: 0) --minReplicas value the min replicas to deploy (default: 3) --maxReplicas value the max replicas of deploy (default: 10)
Release v1.0.29
goctl:
- add model interface, easier for mocking
- improve naming style of generated files
- minor improvements
Release v1.0.28
- support customized error handler for
httpx.Error(...)
in rest, check the example here struct
keyword is optional in .api files- add
-style
ingoctl rpc
subcommand, check details ingoctl rpc proto -h
- fix goctl bugs
Release v1.0.27
- fix the problem that adding grpc client interceptor overwrites existing interceptors
- optimize the parsing of api file
- support
//
comment in api file - support type and service definition in imported api file