# README
- web_context -> log_context -> alarm trace
# Functions
CheckNoLogParams 判断是否需要打印入参出参日志, 不需要打印返回true.
NewWebContext 创建 http contextx.
NewWebServer 创建WebServer.
# Variables
DefaultWebServerMiddlewares 默认的Http Server中间件 其实应该保证TowerLogware 不panic,但是无法保证,多一个recovery来保证业务日志崩溃后依旧有访问日志.
NoLogParamsRules 不想打印的路由分组.
# Structs
WebContext http 的context WebContext 继承了 gin.Context, 并且扩展了日志功能.
WebRoute struct 它实现了gin.IRoutes, gin.IRoute.
WebServer 基于http协议的服务 这里的实现是基于gin框架, 封装了gin的所有的方法 gin 的核心是高效路由, 但是gin.Engine和gin.IRouter(s)的高耦合让我们无法复用, gin的作者认为它的路由就是引擎吧.
# Interfaces
WebRouter interface WebRequest Router 它合并了 gin.IRoute 和 gin.IRoutes.