Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSettings ¶
type AppSettings struct { NatsUrl string DBConfig []DbConfig Redis RedisConfig RabbitMq RabbitMqConfig GlobalConfig GlobalConfig GateWayUrl string ShowSql bool DbSyncServerAddress string EnableSyncDb bool EnableSyncRedis bool AuthCode string }
type AppSettingsHelper ¶
type AppSettingsHelper struct { }
func NewAppSettingsHelper ¶
func NewAppSettingsHelper() *AppSettingsHelper
func (*AppSettingsHelper) GetAppConfig ¶
func (a *AppSettingsHelper) GetAppConfig() *AppSettings
type GlobalConfig ¶
type RabbitMqConfig ¶
type RedisConfig ¶
type RedisConfig struct { ServerList []RedisServer PassWord string KeepAlive int ServerType RedisServerType MasterName string PoolSize int }
type RedisServer ¶
type RedisServerType ¶
type RedisServerType int
const ( //普通 NormalClient RedisServerType = 0 //哨兵 FailoverClient RedisServerType = 1 //集群 Cluster RedisServerType = 2 )
Click to show internal directories.
Click to hide internal directories.