package main type GlobalConf struct { MongoP MgoConf MongoB MgoConf ES EsConf Fields map[string]FieldsData Env EnvConf } type MgoConf struct { Host string DB string Coll string // 查询表 Username string Password string Size int Direct bool } type EsConf struct { URL string Username string Password string } type FieldsData struct { DataType string Field []string Toptype string } type EnvConf struct { Spec string }