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.25 lib/tengine/support/config/amqp.rb
tengine_support-0.3.24 lib/tengine/support/config/amqp.rb
tengine_support-0.3.22 lib/tengine/support/config/amqp.rb
tengine_support-0.3.21 lib/tengine/support/config/amqp.rb
tengine_support-0.3.20 lib/tengine/support/config/amqp.rb
tengine_support-0.3.19 lib/tengine/support/config/amqp.rb
tengine_support-0.3.18 lib/tengine/support/config/amqp.rb
tengine_support-0.3.17 lib/tengine/support/config/amqp.rb
tengine_support-0.3.16 lib/tengine/support/config/amqp.rb
tengine_support-0.3.15 lib/tengine/support/config/amqp.rb
tengine_support-0.3.14 lib/tengine/support/config/amqp.rb
tengine_support-0.3.13 lib/tengine/support/config/amqp.rb
tengine_support-0.3.12 lib/tengine/support/config/amqp.rb
tengine_support-0.3.11 lib/tengine/support/config/amqp.rb
tengine_support-0.3.10 lib/tengine/support/config/amqp.rb
tengine_support-0.3.9 lib/tengine/support/config/amqp.rb
tengine_support-0.3.8 lib/tengine/support/config/amqp.rb
tengine_support-0.3.7 lib/tengine/support/config/amqp.rb
tengine_support-0.3.6 lib/tengine/support/config/amqp.rb
tengine_support-0.3.5 lib/tengine/support/config/amqp.rb