config.go
349 字节
package configs
import (
"gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/constant"
)
type MqConfig struct {
Servers []string `json:"servers"`
ConsumerId string `json:"consumerGroup"`
}
var Cfg = MqConfig{
Servers: constant.KafkaCfg.Servers,
ConsumerId: constant.KafkaCfg.ConsumerId,
}
// "192.168.190.136:9092",
// "106.52.15.41:9092"