User Tools

Site Tools


sib:callers:filecaller

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
sib:callers:filecaller [2019/05/13 11:37]
hubbe
sib:callers:filecaller [2019/09/20 07:23] (current)
hubbe
Line 38: Line 38:
  }  }
     },     },
 +    init: ( thisCaller )=>{},
     inputFormat:​ (topic, msg, cb)=>{     inputFormat:​ (topic, msg, cb)=>{
         cb(msg);         cb(msg);
Line 62: Line 63:
   * _name: A plaintext description of this service   * _name: A plaintext description of this service
   * append: set to true if the caller should append to existing files   * append: set to true if the caller should append to existing files
 +  * 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, callback): 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, callback): 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.
   * loggerCfg: A JSON Object defining what logger actions should be active for this service (see [[sib:​loggerConfiguraton|Logger Configuration]])   * loggerCfg: A JSON Object defining what logger actions should be active for this service (see [[sib:​loggerConfiguraton|Logger Configuration]])
sib/callers/filecaller.txt ยท Last modified: 2019/09/20 07:23 by hubbe