Sha256: c09606af15effbb5e05fe36921c26f3207f9be9e62d2612fffb6da2684714314

Contents?: true

Size: 991 Bytes

Versions: 22

Compression:

Stored size: 991 Bytes

Contents

require 'tengine/support/config'

module Tengine::Support::Config::Amqp
  class Connection
    include Tengine::Support::Config::Definition
    field :host , 'hostname to connect queue.', :default => 'localhost', :type => :string
    field :port , "port to connect queue.", :default => 5672, :type => :integer
    field :vhost, "vhost to connect queue.", :type => :string
    field :user , "username to connect queue.", :type => :string
    field :pass , "password to connect queue.", :type => :string
  end

  class Exchange
    include Tengine::Support::Config::Definition
    field :name   , "exchange name.", :type => :string
    field :type   , "exchange type.", :type => :string, :default => 'direct'
    field :durable, "exchange durable.", :type => :boolean, :default => true
  end

  class Queue
    include Tengine::Support::Config::Definition
    field :name   , "queue name.", :type => :string
    field :durable, "queue durable.", :type => :boolean, :default => true
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
tengine_support-0.3.4 lib/tengine/support/config/amqp.rb
tengine_support-0.3.3 lib/tengine/support/config/amqp.rb