Decree.Store.Notifications.Publisher (decree v0.1.0)

Copy Markdown View Source

A GenStage consumer which subscribes to a Decree.Store.Notifications.Listener and receives Decree.Store.Notifications.Notification events, reading the corresponding range of events from storage, deserializing them, and broadcasting them to PubSub subscribers for the relevant storage stream.

Summary

Functions

handle_events(events, from, state)

Callback implementation for GenStage.handle_events/3.

init(state)

Callback implementation for GenStage.init/1.

start_link(opts)