Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BasePath string // 定义项目的根目录 EventDestroyPrefix = "Destroy_" // 程序退出时需要销毁的事件前缀 ConfigKeyPrefix = "Config_" // 配置文件键值缓存时,键的前缀 // 全局日志指针 ZapLog *zap.Logger // 全局配置文件 ConfigYml ymlconfig_interf.YmlConfigInterf // 全局配置文件指针 ConfigGormv2Yml ymlconfig_interf.YmlConfigInterf // 全局配置文件指针 //gorm 数据库客户端,如果您操作数据库使用的是gorm,请取消以下注释,在 bootstrap>init 文件,进行初始化即可使用 GormDbMysql *gorm.DB // 全局gorm的客户端连接 GormDbSqlserver *gorm.DB // 全局gorm的客户端连接 GormDbPostgreSql *gorm.DB // 全局gorm的客户端连接 //雪花算法全局变量 SnowFlake snowflake_interf.InterfaceSnowFlake //websocket WebsocketHub interface{} WebsocketHandshakeSuccess = "Websocket Handshake+OnOpen Success" WebsocketServerPingMsg = "Server->Ping->Client" )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.