config.go 563 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package main
  2. type GlobalConf struct {
  3. Mongo MgoConf
  4. Cron CronConf
  5. Log Log
  6. Env EnvConf
  7. }
  8. type MgoConf struct {
  9. Host string
  10. DB string
  11. Coll string // 查询表
  12. Username string
  13. Password string
  14. Size int
  15. }
  16. //CronConf 定时任务
  17. type CronConf struct {
  18. Spec string
  19. Specq string
  20. Start int
  21. End int
  22. }
  23. type Log struct {
  24. LogPath string
  25. MaxSize int
  26. Compress bool
  27. MaxAge int
  28. MaxBackups int
  29. LogLevel string
  30. Format string
  31. }
  32. type EnvConf struct {
  33. LocalPort string
  34. QyxyColl string
  35. BiddingColl string
  36. }