DoubleEntryLedger.Workers.CommandWorkerBehaviour behaviour (double_entry_ledger v0.4.0)

View Source

Behaviour for command worker implementations.

Defines the contract for processing commands by ID, allowing alternative implementations for testing (e.g., mocking crashes).

Summary

Callbacks

process_command_with_id(t, t)

@callback process_command_with_id(Ecto.UUID.t(), String.t()) ::
  {:ok, term(), term()} | {:error, term()}