package main type GlobalConf struct { Mongo MgoConf MongoQy MgoConf Env EnvConf Esa EsConf Esb EsConf Clickhouse CkConf Log Log Mysql MysqlConf } type CkConf struct { Host string Username string Password string DB string } type MgoConf struct { Host string DB string Coll string // 查询表 Username string Password string Size int Direct bool } type EnvConf struct { PortraitIndex string PortraitMgo string Start int End int Spec string Spec2 string Isw bool //是否保存标签里的权重 Esindex string //ent_info } type EsConf struct { URL string Username string Password string Index string } // LabelData 标签配置 type LabelData struct { Name string // 标签名称 Field []string //识别字段 Sfield string //保存字段 Rule []string // 具体规则 RegRule []interface{} //规则的DFA Weight []float64 // 权重 TotalWeight float64 // 最终合并后的权重 } type Log struct { LogPath string MaxSize int Compress bool MaxAge int MaxBackups int LogLevel string Format string } type MysqlConf struct { Host string Username string Password string DB string }