Back to godoc.org

Package vars

v0.0.0-...-211c897
Latest Go to latest

The latest major version is .

Published: Jun 6, 2020 | License: GPL2 | Module: gitee.com/cristiane/push-server-api

Index

Constants

const (
	Version    = "1.0.0"
	AppTypeWeb = 1
)

Variables

var AccessLogger log.LoggerContextIface
var AliRocketMQSetting *setting.AliRocketMQSettingS
var BusinessLogger log.LoggerContextIface
var DBEngine *gorm.DB
var ErrorLogger log.LoggerContextIface
var EventProducer event.ProducerIface
var LoggerSetting *setting.LoggerSettingS
var MysqlSetting *setting.MysqlSettingS
var OssAliSetting *setting.OSSAliSettingS
var QueueAliAMQPSetting *setting.QueueAliAMQPSettingS
var QueueRedisSetting *setting.QueueRedisSettingS
var QueueServer *queue.MachineryQueue
var QueueServerSetting *setting.QueueServerSettingS
var RedisConn *redis.Pool

全局公共对象

var RedisSetting *setting.RedisSettingS
var ServerSetting *setting.ServerSettingS

type Application

type Application struct {
	Name           string
	Type           int32
	EndPort        int
	LoggerRootPath string
	LoadConfig     func() error
	SetupVars      func() error
}

Application ...

type RedisStoreSettingS

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

自定义setting

var RedisStoreSetting *RedisStoreSettingS

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier