config.go 645 B

12345678910111213141516171819202122232425262728
  1. package config
  2. import (
  3. "github.com/zeromicro/go-queue/kq"
  4. "github.com/zeromicro/go-zero/rest"
  5. )
  6. type Config struct {
  7. rest.RestConf
  8. MaxConnectionIdle int // 最大空闲连接时间,秒数
  9. DefaultMaxConnectionIdleTime int // 默认空闲连接时间,秒数
  10. DefaultAckTimeout int // 默认ack超时时间,秒数
  11. DefaultConcurrency int // 默认并发数
  12. Auth struct {
  13. AccessSecret string
  14. AccessExpire int64
  15. }
  16. MsgChatTransfer struct {
  17. Topic string
  18. Addrs []string
  19. }
  20. MsgReadTransfer struct {
  21. Topic string
  22. Addrs []string
  23. }
  24. MsgPushToClientTransfer kq.KqConf
  25. }