main.go 432 B

123456789101112131415161718192021222324252627282930
  1. package main
  2. import (
  3. "qfw/util"
  4. "qfw/util/elastic"
  5. "time"
  6. )
  7. var (
  8. SingleClear = 0
  9. Es *elastic.Elastic
  10. Index string
  11. Itype string
  12. )
  13. func main() {
  14. if Sysconfig["loadStart"] != nil {
  15. loadStart := util.Int64All(Sysconfig["loadStart"])
  16. if loadStart > -1 {
  17. P_QL.loadData(loadStart)
  18. }
  19. }
  20. P_QL.currentType = "project"
  21. P_QL.pici = time.Now().Unix()
  22. P_QL.taskQl()
  23. c := make(chan bool, 1)
  24. <-c
  25. }