Expand description
§Horfimbor eventsource
a small eventsource implementation on top of eventstore
multiple example are available in the test folder
Re-exports§
pub use horfimbor_eventsource_derive;
Modules§
- cache_
db - handle the cache
- helper
- helper to create subscription
- metadata
- common metadata for all the events and command
- model_
key ModelKeyis the entity unique id- repository
- the repository mod is where the heavy lifting occurs read / write to the db, play event, add command …
Enums§
- Event
Source Error - error for the repository
- Event
Source State Error - error coming from the
StateRepository - Stream
Streamallow to create a subscription for different kind.
Traits§
- Command
Commandare an enum for all the action possible- Dto
- the
Dtotrait provide a reader on the database - Event
Eventare an enum for all the change possible- State
- the
Statetrait add update to the state. - State
Named StateNamedjust provide a getter for theStateName
Type Aliases§
- Command
Name - str wrapper
- Event
Name - str wrapper
- State
Name - str wrapper
- Stream
Name - str wrapper