refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907)

This commit is contained in:
Silvan
2022-01-03 09:19:07 +01:00
committed by GitHub
parent 9a374f9c5c
commit 09be70949f
339 changed files with 1436 additions and 1346 deletions

View File

@@ -41,7 +41,7 @@ func NewSetEvent(
}
}
func SetEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func SetEventMapper(event *repository.Event) (eventstore.Event, error) {
e := &SetEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
}
@@ -79,7 +79,7 @@ func NewRemovedEvent(
}
}
func RemovedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func RemovedEventMapper(event *repository.Event) (eventstore.Event, error) {
e := &RemovedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
}
@@ -113,7 +113,7 @@ func NewRemovedAllEvent(
}
}
func RemovedAllEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func RemovedAllEventMapper(event *repository.Event) (eventstore.Event, error) {
return &RemovedAllEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
}, nil