|
|
@@ -423,6 +423,9 @@ var ( |
|
|
|
Broker string |
|
|
|
DefaultQueue string |
|
|
|
ResultBackend string |
|
|
|
Exchange string |
|
|
|
ExchangeType string |
|
|
|
BindingKey string |
|
|
|
|
|
|
|
//decompress config |
|
|
|
DecompressAddress string |
|
|
@@ -1084,9 +1087,12 @@ func NewContext() { |
|
|
|
} |
|
|
|
|
|
|
|
sec = Cfg.Section("machinery") |
|
|
|
Broker = sec.Key("BROKER").MustString("redis://localhost:6379") |
|
|
|
Broker = sec.Key("BROKER").MustString("amqp://admin:pcladmin@127.0.0.1:5672/") |
|
|
|
DefaultQueue = sec.Key("DEFAULT_QUEUE").MustString("DecompressTasksQueue") |
|
|
|
ResultBackend = sec.Key("RESULT_BACKEND").MustString("redis://localhost:6379") |
|
|
|
ResultBackend = sec.Key("RESULT_BACKEND").MustString("amqp://admin:pcladmin@127.0.0.1:5672/") |
|
|
|
Exchange = sec.Key("EXCHANGE").MustString("decompress_exchange") |
|
|
|
ExchangeType = sec.Key("EXCHANGE_TYPE").MustString("direct") |
|
|
|
BindingKey = sec.Key("BINDING_KEY").MustString("decompress_task") |
|
|
|
|
|
|
|
sec = Cfg.Section("decompress") |
|
|
|
DecompressAddress = sec.Key("HOST").MustString("http://192.168.207.34:39987") |
|
|
|