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

Copy Markdown View Source

A GenStage producer which listens for event stream notifications from PostgreSQL using the PostgreSQL LISTEN/NOTIFY mechanism and emits Decree.Store.Notifications.Notification events for subscribed Decree.Store.Notifications.Publisher processes.

The notification payload contains the first and last event number of the appended events.

Summary

Functions

handle_demand(incoming_demand, state)

Callback implementation for GenStage.handle_demand/2.

handle_info(arg, state)

Callback implementation for GenStage.handle_info/2.

init(state)

Callback implementation for GenStage.init/1.

start_link(opts)