config.go 848 B

1234567891011121314151617181920212223
  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 `json:"bath"` //增量批量查询数据量
  16. Chan int `json:"chan"` //并发通道数量
  17. PollCount int `json:"pollCount"` //限制轮询次数
  18. WaitingTime int `json:"waitingTime"` //排队等待时间 单位秒
  19. DoingTime int `json:"doingTime"` //语音识别中 等待时间 单位秒
  20. VoiceRecordId int64 `json:"voiceRecordId"` //增量id
  21. }
  22. )