eidetic v0.0.1 Example.User

Summary

Functions

By calling commit, you will receive the uncommitted events (to put in your event store) and the new model

Get the identifier of your Eidetic Model

Load a model by providing the identifier and a list of events to process

Get the serial_number for your model

Functions

commit(user)

By calling commit, you will receive the uncommitted events (to put in your event store) and the new model

Example

{%Example.User{}, [%Eidetic.Event{}]} = Example.Person.commit(my_person)
identifier(user)

Get the identifier of your Eidetic Model

load(identifier, events)

Load a model by providing the identifier and a list of events to process

register(list)
rename(user, list)
serial_number(user)

Get the serial_number for your model.

If you have a model which was constructed from 2 events, you will receive 2