1 parent
53bb8b7b4d
commit
98c28520ef
5 files changed
+129
-7
No files matched your search
@@ -38,6 +38,7 @@ type Options struct {
|
||||
Middleware []gin.HandlerFunc `json:"-" dc:"业务认证等全局中间件,启动时复制"`
|
||||
ErrorMapper ErrorMapper `json:"-" dc:"业务错误到公开响应的转换函数"`
|
||||
AccessLogger *zap.Logger `json:"-" dc:"访问日志实例,nil 表示关闭"`
|
||||
NoRoute gin.HandlerFunc `json:"-" dc:"应用可选的未匹配路由处理器,未配置使用安全 404"`
|
||||
}
|
||||
|
||||
// Server 拥有单个 Gin 引擎及 HTTP 生命周期,不拥有数据库和业务协程。
|
||||
|
||||