config.go 431 B

12345678910111213141516171819202122232425262728293031
  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. MongoPA MgoConf
  14. MongoB MgoConf
  15. Clickhouse CkConf
  16. Env EnvConf
  17. }
  18. type CkConf struct {
  19. Host string
  20. Username string
  21. Password string
  22. }
  23. type EnvConf struct {
  24. Spec1 string
  25. Spec2 string
  26. Spec3 string
  27. }