Module: EventRouter
- Defined in:
- lib/event_router.rb,
lib/event_router/error.rb,
lib/event_router/event.rb,
lib/event_router/version.rb,
lib/event_router/publisher.rb,
lib/event_router/serializer.rb,
lib/event_router/destination.rb,
lib/event_router/configuration.rb,
lib/event_router/helpers/event.rb,
lib/event_router/serializers/oj.rb,
lib/event_router/serializers/base.rb,
lib/event_router/serializers/json.rb,
lib/event_router/delivery_adapters/base.rb,
lib/event_router/delivery_adapters/sync.rb,
lib/event_router/delivery_adapters/sidekiq.rb,
lib/event_router/errors/required_option_error.rb,
lib/event_router/errors/unsupported_option_error.rb,
lib/event_router/delivery_adapters/helpers/sidekiq.rb,
lib/event_router/delivery_adapters/workers/sidekiq_event_delivery_worker.rb,
lib/event_router/delivery_adapters/workers/sidekiq_destination_delivery_worker.rb
Defined Under Namespace
Modules: DeliveryAdapters, Errors, Helpers, Publisher, Serializer, Serializers
Classes: Configuration, Destination, Error, Event
Constant Summary
collapse
- VERSION =
'0.3.0'
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
32
33
34
|
# File 'lib/event_router.rb', line 32
def configuration
@configuration ||= Configuration.new
end
|
36
37
38
|
# File 'lib/event_router.rb', line 36
def configure
yield configuration if block_given?
end
|
.deserialize(payload, adapter: EventRouter.configuration.serializer_adapter) ⇒ Object
.publish(events, adapter: EventRouter.configuration.delivery_adapter) ⇒ Object
.publish_async(events, adapter: EventRouter.configuration.delivery_adapter) ⇒ Object
.serialize(event, adapter: EventRouter.configuration.serializer_adapter) ⇒ Object