Spear.Event.revision
You're seeing just the function
revision
, go back to Spear.Event module for more information.
Specs
revision(t()) :: non_neg_integer()
Returns the revision of the event, following the event's link if provided
Examples
iex> Spear.Event.revision(%Spear.Event{link: nil, metadata: %{stream_revision: 1, ..}, ..})
1
iex> Spear.Event.revision(
...> %Spear.Event{
...> link: %Spear.Event{metadata: %{stream_revision: 1, ..}, ..},
...> metadata: %{stream_revision: 0, ..},
...> ..
...> }
...> )
1