Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Queries the RabbitMQ server to get all the available the queues (/api/queues/vhost). If vhost is not set in the config file, it uses the default one (%2F).
  2. Then, for each of the queues, it again queries the server for receiving the bindings (/api/queues/vhost/name/bindings), where vhost (default is %2F) is obtained from the config file and name (i.e. queue name) is obtained from the previous step.
  3. The bindings returned for a particular queue are searched for matching MIME types in the routing key. Here a match can be an exact match or a If this is found, the corresponding queue name is appended to the result array

...

  1. .
  2. Finally, when all the queues have been traversed, the result array is returned to the user in JSON format.