# README
spring-echo
[仅发布] 该项目仅为最终发布,开发请关注 go-spring 项目。
封装 github.com/labstack/echo/v4 实现的 Web 框架。
创建 Web 容器
NewContainer
创建 echo 实现的 Web 容器。
func NewContainer(config SpringWeb.ContainerConfig) *Container {}
适配 echo 框架
Handler
适配 echo 形式的处理函数。
func Handler(fn echo.HandlerFunc) SpringWeb.Handler {}
Filter
适配 echo 形式的中间件函数。
func Filter(fn echo.MiddlewareFunc) SpringWeb.Filter {}
EchoContext
将 SpringWeb.Context 转换为 echo.Context。
func EchoContext(ctx SpringWeb.Context) echo.Context {}
WebContext
将 echo.Context 转换为 SpringWeb.Context。
func WebContext(echoCtx echo.Context) SpringWeb.Context {}
# Functions
EchoContext 将 web.Context 转换为 echo.Context.
Filter 适配 echo 形式的中间件函数.
Handler 适配 echo 形式的处理函数.
New 创建 echo 实现的 web 服务器.
WebContext 将 echo.Context 转换为 web.Context.