config.go 546 B

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