config.go 391 B

12345678910111213141516171819202122232425262728
  1. package main
  2. type GlobalConf struct {
  3. MongoBase MgoConf
  4. MongoStd MgoConf
  5. Env EnvConf
  6. ES EsConf
  7. }
  8. type MgoConf struct {
  9. Host string
  10. DB string
  11. Coll string // 查询表
  12. Username string
  13. Password string
  14. Size int
  15. Direct bool
  16. }
  17. type EsConf struct {
  18. URL string
  19. Username string
  20. Password string
  21. }
  22. type EnvConf struct {
  23. Autoid int
  24. Endid int
  25. }