Skip to content

Instantly share code, notes, and snippets.

@mikeseese
Created May 19, 2019 05:47
Show Gist options
  • Save mikeseese/e7ee119f4e0ff10cb25c3bdf6c67ea32 to your computer and use it in GitHub Desktop.
Save mikeseese/e7ee119f4e0ff10cb25c3bdf6c67ea32 to your computer and use it in GitHub Desktop.
export namespace QueueName {
export namespace Thing1 {
export const Created = process.env.AMQP_QUEUE_THING1_CREATED || "thing1/created";
}
export namespace Thing2 {
export const Requested = process.env.AMQP_QUEUE_THING2_REQUESTED || "thing2/requested";
export const Updated = process.env.AMQP_QUEUE_THING2_UPDATED || "thing2/updated";
}
export namespace Thing3 {
export const Requested = process.env.AMQP_QUEUE_THING3_REQUESTED || "thing3/requested";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment