v1.4.0
Framework:
- Support gRPC gateway, use RESTful APIs for gRPC services
- Support
Routes
method to get all registered HTTP routes - Support log file rotation base on file size
- Auto close response.Body in httpc when calling Parse methods
- Support context as parameters in RedisLock
- Minor bug fixes and improvements
What's Changed
- fix goctl rpc protoc strings.EqualFold Service.Name GoPackage by @LeeDF in #2046
- chore: coding style by @kevwan in #2120
- feat: add Wrap and Wrapf in errorx by @kevwan in #2126
- fix: generated sql query fields do not match template by @qwernser in #2004
- feat: support logx.WithFields by @kevwan in #2128
- feat:Add
Routes
method for server by @czyt in #2125 - chore: add more tests by @kevwan in #2129
- chore: refactor by @kevwan in #2130
- docs: update goctl readme by @kevwan in #2136
- chore: remove unimplemented gateway by @kevwan in #2139
- chore(deps): bump go.mongodb.org/mongo-driver from 1.9.1 to 1.10.0 by @dependabot in #2150
- chore(deps): bump google.golang.org/grpc from 1.47.0 to 1.48.0 by @dependabot in #2147
- feat: restful -> grpc gateway by @kevwan in #2155
- feat: export gateway.Server to let users add middlewares by @kevwan in #2157
- feat: support form values in gateway by @kevwan in #2158
- feat: verify RpcPath on startup by @kevwan in #2159
- feat: set content-type to application/json by @kevwan in #2160
- feat: support google.api.http in gateway by @kevwan in #2161
- feat: support customized header to metadata processor by @kevwan in #2162
- chore: refactoring mapping name by @kevwan in #2168
- fix: goctl genhandler duplicate rest/httpx & template import custom by @smithyj in #2152
- fix: Update api template by @anqiansong in #2172
- fix: fix #2102, #2108 by @anqiansong in #2131
- feat: Support for multiple rpc service generation and rpc grouping by @anqiansong in #1972
- feat: Update goctl version by @anqiansong in #2178
- feat: logx support logs rotation based on size limitation. (#1652) by @SgtDaJim in #2167
- chore: refactoring logx by @kevwan in #2181
- chore: refactoring by @kevwan in #2182
- fix: fix switch doesn't work bug by @wubenqi in #2183
- fix:duplicate route check by @fisnone in #2154
- chore: let logx.SetWriter can be called anytime by @kevwan in #2186
- fix: remove invalid log fields in notLoggingContentMethods by @wubenqi in #2187
- support mulitple protoset files by @showurl in #2190
- fix(httpc): fix typo errors by @chenquan in #2189
- fix: logx test foo by @seth-shi in #2144
- fix: only setup logx once by @kevwan in #2188
- chore(deps): bump google.golang.org/protobuf from 1.28.0 to 1.28.1 by @dependabot in #2205
- feat(redislock): support set context by @zcong1993 in #2208
- chore: refactor redislock by @kevwan in #2210
- fix: handling rpc error on gateway by @kevwan in #2212
- chore(deps): bump go.opentelemetry.io/otel/exporters/jaeger from 1.8.0 to 1.9.0 by @dependabot in #2223
- chore(deps): bump go.opentelemetry.io/otel/exporters/zipkin from 1.8.0 to 1.9.0 by @dependabot in #2222
- fix: fix comment typo by @safeoy in #2220
- fix(logx): need to wait for the first caller to complete the execution. by @chenquan in #2213
- chore(deps): bump go.mongodb.org/mongo-driver from 1.10.0 to 1.10.1 by @dependabot in #2225
- chore: renaming configs by @kevwan in #2234
- fix: #2216 by @kevwan in #2235
- docs: update docs for gateway by @kevwan in #2236
- feat: more meaningful error messages, close body on httpc requests by @kevwan in #2238
New Contributors
- @LeeDF made their first contribution in #2046
- @qwernser made their first contribution in #2004
- @SgtDaJim made their first contribution in #2167
- @fisnone made their first contribution in #2154
- @seth-shi made their first contribution in #2144
- @zcong1993 made their first contribution in #2208
- @safeoy made their first contribution in #2220
Full Changelog: v1.3.5...v1.4.0