config.go 300 B

12345678910111213141516171819202122
  1. package main
  2. type MgoConf struct {
  3. Host string
  4. DB string
  5. Coll string // 查询表
  6. Username string
  7. Password string
  8. Size int
  9. Name string
  10. Direct bool
  11. }
  12. type GlobalConf struct {
  13. Mongo MgoConf
  14. MongoM MgoConf
  15. Env EnvConf
  16. }
  17. type EnvConf struct {
  18. NoFields string
  19. }