config.go 500 B

1234567891011121314151617181920212223242526272829303132333435
  1. package main
  2. type GlobalConf struct {
  3. MongoB MgoConf
  4. Log Log
  5. Env EnvConf
  6. }
  7. type EnvConf struct {
  8. FileStart string
  9. NomalStart string
  10. NextAddr string
  11. NextPort string
  12. LocalPort string
  13. }
  14. type MgoConf struct {
  15. Host string
  16. DB string
  17. Coll string // 查询表
  18. Username string
  19. Password string
  20. Size int
  21. Direct bool
  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. }