Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-spring/spring-gin
「仅发布」 gin 封装 ( wrapper for gin )
https://github.com/go-spring/spring-gin
gin go-spring web
Last synced: 14 days ago
JSON representation
「仅发布」 gin 封装 ( wrapper for gin )
- Host: GitHub
- URL: https://github.com/go-spring/spring-gin
- Owner: go-spring
- License: apache-2.0
- Created: 2020-08-08T10:24:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-09T09:38:17.000Z (about 2 years ago)
- Last Synced: 2024-10-15T00:22:37.893Z (about 1 month ago)
- Topics: gin, go-spring, web
- Language: Go
- Homepage: https://go-spring.com
- Size: 1.76 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spring-gin
[仅发布] 该项目仅为最终发布,开发请关注 [go-spring](https://github.com/go-spring/go-spring) 项目。
封装 github.com/gin-gonic/gin 实现的 Web 框架。
- [创建 Web 容器](#创建-web-容器)
- [NewContainer](#newcontainer)
- [适配 gin 框架](#适配-gin-框架)
- [Handler](#handler)
- [Filter](#filter)
- [GinContext](#gincontext)
- [WebContext](#webcontext)### 创建 Web 容器
#### NewContainer
创建 gin 实现的 WebContainer。
func NewContainer(config SpringWeb.ContainerConfig) *Container {}
### 适配 gin 框架
#### Handler
适配 gin 形式的处理函数。
func Handler(fn gin.HandlerFunc) SpringWeb.Handler {}
#### Filter
适配 gin 形式的中间件函数。
func Filter(fn gin.HandlerFunc) SpringWeb.Filter {}
#### GinContext
将 SpringWeb.WebContext 转换为 *gin.Context。
func GinContext(webCtx SpringWeb.WebContext) *gin.Context {}
#### WebContext
将 *gin.Context 转换为 SpringWeb.WebContext。
func WebContext(ginCtx *gin.Context) SpringWeb.WebContext {}