|
@@ -2,14 +2,12 @@ package constant |
|
@@ -2,14 +2,12 @@ package constant |
2
|
|
2
|
|
3
|
import "os"
|
3
|
import "os"
|
4
|
|
4
|
|
5
|
-var KAFKA_HOSTS = "1.116.151.79:9092" // 1.116.151.79:9092
|
5
|
+var KAFKA_HOSTS = "" // 1.116.151.79:9092
|
6
|
|
6
|
|
7
|
-var KAFKA_BOSS_GROUP_ID = "boss_appointment_dev"
|
7
|
+var KAFKA_GROUP_ID = "performance_dev"
|
8
|
|
8
|
|
9
|
var KAFKA_BUSINESS_ADMIN_TOPIC = "mmm-business-admin-dev"
|
9
|
var KAFKA_BUSINESS_ADMIN_TOPIC = "mmm-business-admin-dev"
|
10
|
|
10
|
|
11
|
-var KAFKA_BOSS_APPOINTMENT_TOPIC = "mmm-boss-appointment-dev"
|
|
|
12
|
-
|
|
|
13
|
func init() {
|
11
|
func init() {
|
14
|
if os.Getenv("KAFKA_HOSTS") != "" {
|
12
|
if os.Getenv("KAFKA_HOSTS") != "" {
|
15
|
KAFKA_HOSTS = os.Getenv("KAFKA_HOSTS")
|
13
|
KAFKA_HOSTS = os.Getenv("KAFKA_HOSTS")
|
|
@@ -17,10 +15,7 @@ func init() { |
|
@@ -17,10 +15,7 @@ func init() { |
17
|
if os.Getenv("KAFKA_BUSINESS_ADMIN_TOPIC") != "" {
|
15
|
if os.Getenv("KAFKA_BUSINESS_ADMIN_TOPIC") != "" {
|
18
|
KAFKA_BUSINESS_ADMIN_TOPIC = os.Getenv("KAFKA_BUSINESS_ADMIN_TOPIC")
|
16
|
KAFKA_BUSINESS_ADMIN_TOPIC = os.Getenv("KAFKA_BUSINESS_ADMIN_TOPIC")
|
19
|
}
|
17
|
}
|
20
|
- if os.Getenv("KAFKA_BOSS_GROUP_ID") != "" {
|
|
|
21
|
- KAFKA_BOSS_GROUP_ID = os.Getenv("KAFKA_BOSS_GROUP_ID")
|
|
|
22
|
- }
|
|
|
23
|
- if os.Getenv("KAFKA_BOSS_APPOINTMENT_TOPIC") != "" {
|
|
|
24
|
- KAFKA_BOSS_APPOINTMENT_TOPIC = os.Getenv("KAFKA_BOSS_APPOINTMENT_TOPIC")
|
18
|
+ if os.Getenv("KAFKA_GROUP_ID") != "" {
|
|
|
19
|
+ KAFKA_GROUP_ID = os.Getenv("KAFKA_GROUP_ID")
|
25
|
}
|
20
|
}
|
26
|
} |
21
|
} |