config.go 480 B

1234567891011121314151617181920212223242526272829303132333435
  1. package main
  2. type GlobalConf struct {
  3. MongoP MgoConf
  4. MongoB MgoConf
  5. ES EsConf
  6. Fields map[string]FieldsData
  7. Env EnvConf
  8. }
  9. type MgoConf struct {
  10. Host string
  11. DB string
  12. Coll string // 查询表
  13. Username string
  14. Password string
  15. Size int
  16. Direct bool
  17. }
  18. type EsConf struct {
  19. URL string
  20. Username string
  21. Password string
  22. }
  23. type FieldsData struct {
  24. DataType string
  25. Field []string
  26. Toptype string
  27. }
  28. type EnvConf struct {
  29. Spec string
  30. }