config.go 415 B

12345678910111213141516171819202122232425262728
  1. package main
  2. type Conf struct {
  3. Mongo MgoConf `json:"mongo"`
  4. Cron
  5. Classfication
  6. }
  7. type MgoConf struct {
  8. Host string
  9. DB string
  10. Coll string // 查询表
  11. SaveColl string //保存表
  12. Username string
  13. Password string
  14. Size int
  15. LastID string //上次处理的最新ID
  16. }
  17. type Cron struct {
  18. Spec string
  19. }
  20. type Classfication struct {
  21. IP string
  22. Port string
  23. Localport string
  24. }