Sha256: 78a7394435187e3f34620f1174d509b0c760bc13a22a07462a12a35c3753ae76

Contents?: true

Size: 715 Bytes

Versions: 30

Compression:

Stored size: 715 Bytes

Contents

require 'dry/container'

module Messaging
  module Adapters
    extend Dry::Container::Mixin

    class Consumer
      extend Dry::Container::Mixin

      def self.default
        resolve(Config.consumer.adapter)
      end
    end

    class Dispatcher
      extend Dry::Container::Mixin

      def self.default
        resolve(Config.dispatcher.adapter)
      end
    end

    class Store
      extend Dry::Container::Mixin

      def self.default
        resolve(Config.message_store.adapter)
      end
    end
  end
end

Messaging::Adapters::Dispatcher.register(:null_adapter, memoize: true) { proc {} }

require 'messaging/adapters/kafka'
require 'messaging/adapters/postgres'
require 'messaging/adapters/test'

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
messaging-4.0.12 lib/messaging/adapters.rb
messaging-4.0.11 lib/messaging/adapters.rb
messaging-4.0.10 lib/messaging/adapters.rb
messaging-4.0.10.pre lib/messaging/adapters.rb
messaging-4.0.9 lib/messaging/adapters.rb
messaging-4.0.8 lib/messaging/adapters.rb
messaging-4.0.7 lib/messaging/adapters.rb
messaging-4.0.6 lib/messaging/adapters.rb
messaging-4.0.5 lib/messaging/adapters.rb
messaging-4.0.4.pre lib/messaging/adapters.rb
messaging-4.0.3.pre lib/messaging/adapters.rb
messaging-4.0.2.pre lib/messaging/adapters.rb
messaging-4.0.1.pre lib/messaging/adapters.rb
messaging-4.0.0.pre lib/messaging/adapters.rb
messaging-3.8.2 lib/messaging/adapters.rb
messaging-3.8.1 lib/messaging/adapters.rb
messaging-3.8.0 lib/messaging/adapters.rb
messaging-3.7.3 lib/messaging/adapters.rb
messaging-3.7.2 lib/messaging/adapters.rb
messaging-3.7.1 lib/messaging/adapters.rb