User Tools

Site Tools


sib:callers:crypt

Differences

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

Link to this comparison view

sib:callers:crypt [2019/05/13 11:35]
hubbe created
sib:callers:crypt [2019/09/20 07:22] (current)
hubbe
Line 40: Line 40:
  remote: "​remote/​path/​pubkey.pem"​  remote: "​remote/​path/​pubkey.pem"​
  },  },
 + init: ( thisCaller )=>{},
  inputFormat:​ (topic, msg, callback)=>​{  inputFormat:​ (topic, msg, callback)=>​{
  // Format the input data  // Format the input data
Line 69: Line 70:
     * public: Filepath to the servers public RSA key, not used but will be added to the _/STATUS output of service     * public: Filepath to the servers public RSA key, not used but will be added to the _/STATUS output of service
     * remote: Filepath to the remote services public key, used to encrypt messages and verify signatures of incoming messages     * remote: Filepath to the remote services public key, used to encrypt messages and verify signatures of incoming messages
 +  * 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 input to the callback 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 input to the callback method must be a JSON formatted message conforming to the SIB message standard.
   * outputFormat(topic,​ msg, callback): This message is run on the response data before publishing to the response topic. The response message is passed as the argument and the input to the callback method must be a JSON formatted message conforming to the SIB message standard.   * outputFormat(topic,​ msg, callback): This message is run on the response data before publishing to the response topic. The response message is passed as the argument and the input to the callback method must be a JSON formatted message conforming to the SIB message standard.
sib/callers/crypt.txt ยท Last modified: 2019/09/20 07:22 by hubbe