config.go
353 字节
/**
@author: stevechan
@date: 2021/3/11
@note:
**/
package configs
type MqConfig struct {
Topics []string `json:"topics"`
Servers []string `json:"servers"`
ConsumerId string `json:"consumerGroup"`
}
var Cfg = MqConfig{
Topics: []string{"xiangmi_project_dev"},
Servers: []string{"127.0.0.1:9092"},
ConsumerId: "test",
}