Documentation ¶
Index ¶
Constants ¶
View Source
const ( Version = "1.0.0" AppTypeWeb = 1 AppTypeQueue = 3 )
Variables ¶
View Source
var AccessLogger log.LoggerContextIface
View Source
var AliRocketMQSetting *setting.AliRocketMQSettingS
View Source
var BusinessLogger log.LoggerContextIface
View Source
var CacheRegisterClient gcache.Cache
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 ServerMonitorMux *http.ServeMux }
Application ...
type EmailConfigSettingS ¶
type EmailConfigSettingS struct { User string `json:"user"` Password string `json:"password"` Host string `json:"host"` Port string `json:"port"` }
var EmailConfigSetting *EmailConfigSettingS
type EmailNoticeSettingS ¶
var EmailNoticeSetting *EmailNoticeSettingS
type QueueApplication ¶
type QueueApplication struct { *Application QueueLogger *log.LoggerContext QueueServer *queue.MachineryQueue GetNamedTaskFuncs func() map[string]interface{} }
QueueApplication ...
var App *QueueApplication
Click to show internal directories.
Click to hide internal directories.