module Legion::Extensions::Node::Transport

Public Class Methods

additional_e_to_q() click to toggle source
# File lib/legion/extensions/node/transport.rb, line 5
def self.additional_e_to_q
  array = [{ from: 'node', to: 'node', routing_key: "node.#{Legion::Settings[:client][:name]}" }]
  array.push(from: 'node', to: 'node', routing_key: 'node.data.#') if Legion::Settings[:data][:connected]
  array.push(from: 'node', to: 'node', routing_key: 'node.cache.#') if Legion::Settings[:cache][:connected]
  array.push(from: 'node', to: 'node', routing_key: 'node.crypt.#')
  array
end