User Tools

Site Tools


sib:callers:rabbitcaller

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sib:callers:rabbitcaller [2019/05/13 11:40]
hubbe
sib:callers:rabbitcaller [2019/11/05 07:59] (current)
hubbe
Line 8: Line 8:
  
 |Module|sib_rabbitcaller| |Module|sib_rabbitcaller|
-|Version|1.3.5|+|Version|1.3.6|
  
 ==== Workflow ==== ==== Workflow ====
Line 30: Line 30:
         }         }
     },     },
 +    init: ( thisCaller )=>{},
     inputFormat:​ (topic, msg, cb)=>{     inputFormat:​ (topic, msg, cb)=>{
         cb(msg);         cb(msg);
Line 47: Line 48:
   * _name: A plaintext description of this service   * _name: A plaintext description of this service
   * getQ: Is run before publishing messages onto MQ, the callback is sent a //q// array as described below and determins which queues to publish messages to. The queues returned by this method must be set in the default.q array OR be created manually in RabbitMQ for this to work   * getQ: Is run before publishing messages onto MQ, the callback is sent a //q// array as described below and determins which queues to publish messages to. The queues returned by this method must be set in the default.q array OR be created manually in RabbitMQ for this to work
 +  * init(thisCaller):​ If defined this method is executed when the service is starting up as the last step of initialization. //​thisCaller//​ is a reference to the instance of the caller that does the method call.
   * inputFormat(topic,​ msg, cb): The method that is run on service activation. The original message is passed as the argument and the return value from this method must be a JSON formatted message conforming to the SIB message standard.   * inputFormat(topic,​ msg, cb): The method that is run on service activation. The original message is passed as the argument and the return value from this method must be a JSON formatted message conforming to the SIB message standard.
   * rabbitmq: The RabbitMQ connection string   * rabbitmq: The RabbitMQ connection string
sib/callers/rabbitcaller.1557747609.txt.gz ยท Last modified: 2019/05/13 11:40 by hubbe