Documentation ¶
Index ¶
Constants ¶
View Source
const ( Version = "1.0.0" AppTypeWeb = 1 )
Variables ¶
View Source
var AccessLogger log.LoggerContextIface
View Source
var AliRocketMQSetting *setting.AliRocketMQSettingS
View Source
var BusinessLogger log.LoggerContextIface
View Source
var DBEngine *gorm.DB
View Source
var ErrorLogger log.LoggerContextIface
View Source
var EventProducer event.ProducerIface
View Source
var LoggerSetting *setting.LoggerSettingS
View Source
var MysqlSetting *setting.MysqlSettingS
View Source
var OssAliSetting *setting.OSSAliSettingS
View Source
var QueueAliAMQPSetting *setting.QueueAliAMQPSettingS
View Source
var QueueRedisSetting *setting.QueueRedisSettingS
View Source
var QueueServer *queue.MachineryQueue
View Source
var QueueServerSetting *setting.QueueServerSettingS
View Source
var RedisConn *redis.Pool
全局公共对象
View Source
var RedisSetting *setting.RedisSettingS
View Source
var ServerSetting *setting.ServerSettingS
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Name string Type int32 EndPort int LoggerRootPath string LoggerLevel string LoadConfig func() error SetupVars func() error }
Application ...
type WEBApplication ¶
type WEBApplication struct { *Application TrackLogger *log.LoggerContext SysErrLogger *log.LoggerContext RegisterHttpRoute func() *gin.Engine RegisterEventHandler func(event.EventServerIface) error }
web application
var App *WEBApplication
Click to show internal directories.
Click to hide internal directories.