...
|
...
|
@@ -3,6 +3,8 @@ package configs |
|
|
import (
|
|
|
"os"
|
|
|
"strings"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/partnermg/pkg/constant"
|
|
|
)
|
|
|
|
|
|
type MqConfig struct {
|
...
|
...
|
@@ -10,7 +12,10 @@ type MqConfig struct { |
|
|
ConsumerId string `json:"consumerGroup"`
|
|
|
}
|
|
|
|
|
|
var Cfg MqConfig
|
|
|
var Cfg = MqConfig{
|
|
|
Servers: constant.KafkaCfg.Servers,
|
|
|
ConsumerId: constant.KafkaCfg.ConsumerId,
|
|
|
}
|
|
|
|
|
|
func init() {
|
|
|
|
...
|
...
|
|