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

@@ -3,6 +3,7 @@ package policy
import (
"encoding/json"
"fmt"
"github.com/caos/zitadel/internal/errors"
"github.com/caos/zitadel/internal/eventstore"
"github.com/caos/zitadel/internal/eventstore/repository"
@@ -74,7 +75,7 @@ func NewMailTextAddedEvent(
}
}
func MailTextAddedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func MailTextAddedEventMapper(event *repository.Event) (eventstore.Event, error) {
e := &MailTextAddedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
}
@@ -166,7 +167,7 @@ func ChangeButtonText(buttonText string) func(*MailTextChangedEvent) {
}
}
func MailTextChangedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func MailTextChangedEventMapper(event *repository.Event) (eventstore.Event, error) {
e := &MailTextChangedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
}
@@ -202,7 +203,7 @@ func NewMailTextRemovedEvent(base *eventstore.BaseEvent, mailTextType, language
}
}
func MailTextRemovedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func MailTextRemovedEventMapper(event *repository.Event) (eventstore.Event, error) {
return &MailTextRemovedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
}, nil