Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MYSQL_HOST string REDIS_HOST string ELASTICSEARCH_ADDRESS string )
View Source
var ( GlobalAdminServerConfigProperties = ServerConfigProperties{} GlobalPortalServerConfigProperties = ServerConfigProperties{} GlobalSearchServerConfigProperties = ServerConfigProperties{} GlobalJwtConfigProperties = JwtConfigProperties{} // GlobalDatabaseConfigProperties 如果不同服务的数据库配置不同,可以在这里分别定义 GlobalDatabaseConfigProperties = DatabaseConfigProperties{} )
全局配置属性
Functions ¶
func InitPortalConfigProperties ¶
func InitPortalConfigProperties()
func InitSearchConfigProperties ¶
func InitSearchConfigProperties()
Types ¶
type DatabaseConfigProperties ¶
type DatabaseConfigProperties struct { GormMysqlConfigProperties GormMysqlConfigProperties RedisConfigProperties RedisConfigProperties ElasticSearchConfigProperties ElasticSearchConfigProperties }
type GormMysqlConfigProperties ¶
type GormMysqlConfigProperties struct { Host string Port string Database string Username string Password string Charset string ParseTime bool // 时区 Loc string GormSlowThreshold time.Duration GormColorful bool GormIgnoreRecordNotFoundError bool GormParameterizedQueries bool // Gorm 日志级别 // 1 Silent,2 Error,3 Warn,4 Info GormLogLevel int }
GormMysqlConfigProperties gorm mysql 配置属性
type JwtConfigProperties ¶
type JwtConfigProperties struct { TokenHeader string TokenHead string Secret string Expiration int }
JwtConfigProperties security 配置属性
type RedisConfigProperties ¶
RedisConfigProperties redis 配置属性
Click to show internal directories.
Click to hide internal directories.