Module: Gitlab::EventStore
- Defined in:
- lib/gitlab/event_store.rb,
lib/gitlab/event_store/event.rb,
lib/gitlab/event_store/store.rb,
lib/gitlab/event_store/subscriber.rb,
lib/gitlab/event_store/subscription.rb
Defined Under Namespace
Modules: Subscriber
Classes: Event, Store, Subscription
Constant Summary
collapse
- Error =
Class.new(StandardError)
- InvalidEvent =
Class.new(Error)
- InvalidSubscriber =
Class.new(Error)
Class Method Summary
collapse
Class Method Details
.instance ⇒ Object
25
26
27
|
# File 'lib/gitlab/event_store.rb', line 25
def instance
@instance ||= Store.new { |store| configure!(store) }
end
|
.publish(event) ⇒ Object
17
18
19
|
# File 'lib/gitlab/event_store.rb', line 17
def publish(event)
instance.publish(event)
end
|
.publish_group(events) ⇒ Object
21
22
23
|
# File 'lib/gitlab/event_store.rb', line 21
def publish_group(events)
instance.publish_group(events)
end
|