config.go 772 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package config
  2. import (
  3. "github.com/zeromicro/go-queue/kq"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. )
  6. type Config struct {
  7. zrpc.RpcServerConf
  8. DB struct {
  9. DataSource string
  10. }
  11. RedisConf struct {
  12. Host string
  13. Password string
  14. DB int
  15. }
  16. // 消息推送到客户端的kafka配置
  17. MsgPushToClientTransfer struct {
  18. Topic string
  19. Addrs []string
  20. }
  21. // mongodb配置
  22. Mongo struct {
  23. Url string
  24. Db string
  25. Collection string
  26. }
  27. // 消息已读配置信息
  28. MsgReadHandler struct {
  29. GroupMsgReadHandler int32 // 群消息已读处理
  30. GroupMsgReadRecordDelayTime int64 // 群消息已读延迟时间
  31. GroupMsgReadRecordDelayCount int64 // 群消息已读延迟次数
  32. }
  33. // 消息队列消费
  34. MsgChatTransfer kq.KqConf
  35. }