2.2.0 • Published 6 years ago

kronos-message v2.2.0

Weekly downloads
1
License
BSD-2-Clause
Repository
github
Last release
6 years ago

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

ParamTypeDescription
newDataobjectThis json is new generated data by the step. It has the follwing structure. newData : { "info" : {}, "payload" : }
oldRequestMessageobjectThe request message this step has received

addHop(message, stepName, stepType, endpoint)

Adds a new way point to the message

Kind: global function

ParamTypeDescription
messageobjectThe message to add the new hop
stepNamestringThe name of the current step which issues this way point
stepTypestringThe typeName of the step
endpointstringThe name of endpoint the message is routed through

install

With npm do:

npm install kronos-message

license

BSD-2-Clause