Proca.Stage.Event (proca v3.3.1)

Define JSON format for events in proca system.

These events are mostly CRUD operations that happened on different records.

Link to this section Summary

Functions

Routing key for the event message is two-element topic routing key for confirms (because they have subtype), and one element key for CRUD events.

Link to this section Functions

Link to this function

emit(event, record, org_id, opts \\ [])

Link to this function

metadata(event, record)

Link to this function

put_data(data, atom, confirm, opts)

Link to this function

routing_key(event, arg2)

Routing key for the event message is two-element topic routing key for confirms (because they have subtype), and one element key for CRUD events.

Examples:

  • confirm_created.add_staffer - for new add_staffer confirm XXX remove!
  • supporter.email_status_changed
  • system.campaign_updated - for any campaign update