requestid
gin-swagger
requestid | gin-swagger | |
---|---|---|
1 | 3 | |
172 | 3,565 | |
1.7% | 1.2% | |
6.3 | 4.7 | |
13 days ago | 7 days ago | |
Go | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
requestid
-
HTTP request ID association with logs
The requestid middleware for Hertz is based on the Gin framework's requestid and adapted to Hertz. Its main purpose is to add rquestid to the response and context of a request to uniquely identify a request.
gin-swagger
-
swaggo/swag alternative, but should generate OpenAPI 3.0 spec file
No I use this one https://github.com/swaggo/gin-swagger. It's with swagger 2.0, but I think it can be easily converted to OpenApi 3.0. I tried it once and the only thing it complained about was some simple "metadata" like contact person etc.
-
How to configure swagger UI so it doesn't need the URL?
I don't use Gin, but I took the canonical example from https://github.com/swaggo/gin-swagger#canonical-example, removed the url := ginSwagger.URL line entirely (and removed url from the next line), and it works as expected locally or when deployed in kubernetes (via kind) for me.
What are some alternatives?
requestid - requestid middleware for Hertz
swag - Automatically generate RESTful API documentation with Swagger 2.0 for Go.
souin - An HTTP cache system, RFC compliant, compatible with @tyktechnologies, @traefik, @caddyserver, @go-chi, @bnkamalesh, @beego, @devfeel, @labstack, @gofiber, @go-goyave, @go-kratos, @gin-gonic, @roadrunner-server, @zalando, @zeromicro, @nginx and @apache
go-fastapi - Create an API and get Swagger definition for free
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
swag - Simple go wrapper to create swagger compatible APIs
hertz - Go HTTP framework with high-performance and strong-extensibility for building micro-services.
Ginrpc - gin auto binding,grpc, and annotated route,gin 注解路由, grpc,自动参数绑定工具
logger - A collection of Hertz logger extension
gin-vue-admin - 🚀Vite+Vue3+Gin的开发基础平台,支持TS和JS混用。它集成了JWT鉴权、权限管理、动态路由、显隐可控组件、分页封装、多点登录拦截、资源权限、上传下载、代码生成器、表单生成器和可配置的导入导出等开发必备功能。
gin-timeout - Timeout Middleware for Gin framework
GinMiddleware - Middleware implemented in golang using gin framework