kronos-message

2.2.0 • Public • Published

npm semantic-release Build Status bithound codecov.io Coverage Status Code Climate Known Vulnerabilities GitHub Issues Stories in Ready Dependency Status devDependency Status docs downloads Commitizen friendly

kronos-message

The message object is the 'data' object which will be send from step to step

API Reference

createMessage(newData, oldRequestMessage)

Creates a new request message structure. It will merge the new data into a copy of the old request. Only thf fields 'info' and 'hops' will be copied

Kind: global function

Param Type Description
newData object This json is new generated data by the step. It has the follwing structure. newData : { "info" : {}, "payload" : }
oldRequestMessage object The request message this step has received

addHop(message, stepName, stepType, endpoint)

Adds a new way point to the message

Kind: global function

Param Type Description
message object The message to add the new hop
stepName string The name of the current step which issues this way point
stepType string The typeName of the step
endpoint string The name of endpoint the message is routed through

install

With npm do:

npm install kronos-message

license

BSD-2-Clause

Readme

Keywords

none

Package Sidebar

Install

npm i kronos-message

Weekly Downloads

1

Version

2.2.0

License

BSD-2-Clause

Unpacked Size

10.8 kB

Total Files

5

Last publish

Collaborators

  • darlenya