Insider.Event.Ordering (Insider v0.1.0)

Copy Markdown View Source

Ordering rules for immutable normalized events.

Summary

Types

relation()

@type relation() ::
  :before | :after | :concurrent | :same_position | :equal | :conflict

Functions

compare(left, right)

@spec compare(Insider.Event.t(), Insider.Event.t()) :: relation()

stream_key(event)

@spec stream_key(Insider.Event.t()) ::
  {String.t(), String.t(), String.t(), String.t(), String.t()}