config.go 434 B

123456789101112131415161718
  1. package main
  2. type (
  3. Config struct {
  4. CornExp1 string `json:"cornexp1"`
  5. TiDb struct {
  6. Host string `json:"host"`
  7. Port int `json:"port"`
  8. Database string `json:"database"`
  9. User string `json:"user"`
  10. Password string `json:"password"`
  11. PollSize int `json:"poolsize"`
  12. MaxIdle int `json:"maxidle"`
  13. MaxLeftTime int `json:"maxleft"`
  14. } `json:"tiDb"`
  15. Bath int
  16. }
  17. )