config.go 489 B

123456789101112131415161718
  1. package rq
  2. import (
  3. "zero/core/discov"
  4. "zero/core/service"
  5. "zero/core/stores/redis"
  6. )
  7. type RmqConf struct {
  8. service.ServiceConf
  9. Redis redis.RedisKeyConf
  10. Etcd discov.EtcdConf `json:",optional"`
  11. NumProducers int `json:",optional"`
  12. NumConsumers int `json:",optional"`
  13. Timeout int64 `json:",optional"`
  14. DropBefore int64 `json:",optional"`
  15. ServerSensitive bool `json:",default=false"`
  16. }