config.go 912 B

12345678910111213141516171819202122232425
  1. package main
  2. type (
  3. Config struct {
  4. CornExp1 string `json:"cornexp1"`
  5. KeyId string `json:"keyId"`
  6. Key string `json:"key"`
  7. TiDb struct {
  8. Host string `json:"host"`
  9. Port int `json:"port"`
  10. Database string `json:"database"`
  11. User string `json:"user"`
  12. Password string `json:"password"`
  13. PollSize int `json:"poolsize"`
  14. MaxIdle int `json:"maxidle"`
  15. MaxLeftTime int `json:"maxleft"`
  16. } `json:"tiDb"`
  17. Bath int `json:"bath"` //增量批量查询数据量
  18. Chan int `json:"chan"` //并发通道数量
  19. PollCount int `json:"pollCount"` //限制轮询次数
  20. WaitingTime int `json:"waitingTime"` //排队等待时间 单位秒
  21. DoingTime int `json:"doingTime"` //语音识别中 等待时间 单位秒
  22. VoiceRecordId int64 `json:"voiceRecordId"` //增量id
  23. }
  24. )