vars

package
v0.0.0-...-dc24fe2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version      = "1.0.0"
	AppTypeWeb   = 1
	AppTypeQueue = 3
)

Variables

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 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

type EmailNoticeSettingS struct {
	Receivers string
	Subject   string
}
var EmailNoticeSetting *EmailNoticeSettingS

type QueueApplication

type QueueApplication struct {
	*Application
	QueueLogger       *log.LoggerContext
	QueueServer       *queue.MachineryQueue
	GetNamedTaskFuncs func() map[string]interface{}
}

QueueApplication ...

var App *QueueApplication

type RedisStoreSettingS

type RedisStoreSettingS struct {
	Host         string
	Password     string
	PoolNum      int
	KeyNamespace string
}

自定义setting

var RedisStoreSetting *RedisStoreSettingS

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL