Initial import of verae-nats-process from zapier monorepo
This commit is contained in:
commit
f54265cc18
10 changed files with 199 additions and 0 deletions
13
src/subjects.js
Normal file
13
src/subjects.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Rename `example.process` before production.
|
||||
* Pattern: verae.<area>.<resource>.<action>
|
||||
*/
|
||||
export const AREA = 'example';
|
||||
export const RESOURCE = 'process';
|
||||
|
||||
export const SUBJECTS = Object.freeze({
|
||||
IN: `verae.${AREA}.${RESOURCE}.in`,
|
||||
OUT: `verae.${AREA}.${RESOURCE}.out`,
|
||||
QUEUE: `${AREA}-${RESOURCE}`,
|
||||
reply: (correlationId) => `verae.${AREA}.${RESOURCE}.reply.${correlationId}`,
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue