You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/rq/config.go

19 lines
489 B
Go

4 years ago
package rq
import (
"zero/core/discov"
"zero/core/service"
"zero/core/stores/redis"
)
type RmqConf struct {
service.ServiceConf
Redis redis.RedisKeyConf
Etcd discov.EtcdConf `json:",optional"`
NumProducers int `json:",optional"`
NumConsumers int `json:",optional"`
Timeout int64 `json:",optional"`
DropBefore int64 `json:",optional"`
ServerSensitive bool `json:",default=false"`
}