Dialup.Contexts (Dialup v0.2.0)

Copy Markdown View Source

Declarative bounded-context map for Dialup Commanded applications.

defmodule MyApp.Contexts do
  use Dialup.Contexts

  context :ordering do
    commanded_context MyApp.Ordering
    aggregates [MyApp.Ordering.Aggregates.Order]
    events_out [:OrderConfirmed]
    events_in [:PaymentCompleted]
  end
end

Summary

Functions

aggregates(modules)

(macro)

commanded_context(module)

(macro)

context(name, list)

(macro)

events_in(events)

(macro)

events_out(events)

(macro)