Chronik v0.1.1 Chronik.EventRecord View Source

A structure that represents a record of a domain event in the Store or on the PubSub.

Link to this section Summary

Functions

Helper funciton to create records from domain events

Link to this section Types

Link to this type t() View Source
t() :: %Chronik.EventRecord{aggregate: any, aggregate_version: Chronik.Store.version, created_at: non_neg_integer, domain_event: any, version: Chronik.Store.version}

Link to this section Functions

Link to this function create(domain_event, aggregate, version, aggregate_version) View Source

Helper funciton to create records from domain events.

Returns a record.