Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Router 全局路由实例 Router *gin.Engine // Vreader 配置文件读取组件(viper.Viper) Vreader *viper.Viper Conf Configuration AppPath string MyDB *gorm.DB MyLog *logrus.Logger // Enforcer casbin的权限认证器 Enforcer *casbin.Enforcer )
全局变量声明
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
// AppName 当前应用的名称
AppName string
Port int
// 日志记录级别。默认为 warn
// 可配置级别有: panic fatal error warn info debug trace
LogLevel string
// APIPrefix API前缀。请以 / 开头配置此项目
// 默认值为 /api
APIPrefix string
DBConf
JwtConfig
}
Configuration 配置
Click to show internal directories.
Click to hide internal directories.