Skip to content

Instantly share code, notes, and snippets.

@jamescarr
Last active June 15, 2017 00:00
Show Gist options
  • Save jamescarr/be4eb03ed8567dd975eead4a9738463b to your computer and use it in GitHub Desktop.
Save jamescarr/be4eb03ed8567dd975eead4a9738463b to your computer and use it in GitHub Desktop.
err := ch.ExchangeDeclare(
"unrouted", // name
"topic", // type
true, // durable
false, // auto-deleted
false, // internal
false, // noWait
nil,
)
failOnError(err, "")
_, err = ch.QueueDeclare("unrouted.messages", true, false, false, false, nil)
failOnError(err, "Failed to declare queue")
ch.QueueBind("unrouted.messages", "#", "unrouted", false, nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment