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 ModelKey
is 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
Stream
allow to create a subscription for different kind.
Traits§
- Command
Command
are an enum for all the action possible- Dto
- the
Dto
trait provide a reader on the database - Event
Event
are an enum for all the change possible- State
- the
State
trait add update to the state. - State
Named StateNamed
just provide a getter for theStateName
Type Aliases§
- Command
Name - str wrapper
- Event
Name - str wrapper
- State
Name - str wrapper
- Stream
Name - str wrapper