Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Env string
View Source
var Es = EsConf{}
View Source
var HttpPort int
View Source
var LogColorful = false
View Source
var LogLevel = "DEBUG"
log conf
View Source
var LogResponseLength int
View Source
var LogShowSql = true
View Source
var MySql = MysqlConf{}
View Source
var Redis = RedisConf{}
View Source
var ServerName string
Base conf
Functions ¶
func BaseConfig ¶
func BaseConfig(conf Config)
Types ¶
type EsConf ¶
type EsConf struct { ServerHost string ServerPort int Sniff bool LogType int //1、只记录用户操作,2、只记录非用户操作,3全记录 LogIndexNamePrefix string UnLogUrls []string }
ES conf
Click to show internal directories.
Click to hide internal directories.