Crate horfimbor_eventsource

Source
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§

EventSourceError
error for the repository
EventSourceStateError
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.
StateNamed
StateNamed just provide a getter for the StateName

Type Aliases§

CommandName
str wrapper
EventName
str wrapper
StateName
str wrapper
StreamName
str wrapper