|
|
//go:build !local
|
|
|
// +build !local
|
|
|
|
|
|
package constant
|
|
|
|
...
|
...
|
@@ -8,14 +9,14 @@ var KAFKA_HOSTS = "127.0.0.1:9092" // 1.116.151.79:9092 |
|
|
|
|
|
var KAFKA_GROUP_ID = "performance_dev"
|
|
|
|
|
|
var KAFKA_BUSINESS_ADMIN_TOPIC = "mmm-business-admin-dev"
|
|
|
var KAFKA_BUSINESS_TOPIC = "mmm-business-admin-dev"
|
|
|
|
|
|
func init() {
|
|
|
if os.Getenv("KAFKA_HOSTS") != "" {
|
|
|
KAFKA_HOSTS = os.Getenv("KAFKA_HOSTS")
|
|
|
}
|
|
|
if os.Getenv("KAFKA_BUSINESS_ADMIN_TOPIC") != "" {
|
|
|
KAFKA_BUSINESS_ADMIN_TOPIC = os.Getenv("KAFKA_BUSINESS_ADMIN_TOPIC")
|
|
|
if os.Getenv("KAFKA_BUSINESS_TOPIC") != "" {
|
|
|
KAFKA_BUSINESS_TOPIC = os.Getenv("KAFKA_BUSINESS_TOPIC")
|
|
|
}
|
|
|
if os.Getenv("KAFKA_GROUP_ID") != "" {
|
|
|
KAFKA_GROUP_ID = os.Getenv("KAFKA_GROUP_ID")
|
...
|
...
|
|