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

@@ -2,6 +2,7 @@ package org
import (
"context"
"github.com/caos/zitadel/internal/eventstore"
"github.com/caos/zitadel/internal/domain"
@@ -47,7 +48,7 @@ func NewIDPConfigAddedEvent(
}
}
func IDPConfigAddedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func IDPConfigAddedEventMapper(event *repository.Event) (eventstore.Event, error) {
e, err := idpconfig.IDPConfigAddedEventMapper(event)
if err != nil {
return nil, err
@@ -81,7 +82,7 @@ func NewIDPConfigChangedEvent(
return &IDPConfigChangedEvent{IDPConfigChangedEvent: *changeEvent}, nil
}
func IDPConfigChangedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func IDPConfigChangedEventMapper(event *repository.Event) (eventstore.Event, error) {
e, err := idpconfig.IDPConfigChangedEventMapper(event)
if err != nil {
return nil, err
@@ -114,7 +115,7 @@ func NewIDPConfigRemovedEvent(
}
}
func IDPConfigRemovedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func IDPConfigRemovedEventMapper(event *repository.Event) (eventstore.Event, error) {
e, err := idpconfig.IDPConfigRemovedEventMapper(event)
if err != nil {
return nil, err
@@ -145,7 +146,7 @@ func NewIDPConfigDeactivatedEvent(
}
}
func IDPConfigDeactivatedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func IDPConfigDeactivatedEventMapper(event *repository.Event) (eventstore.Event, error) {
e, err := idpconfig.IDPConfigDeactivatedEventMapper(event)
if err != nil {
return nil, err
@@ -176,7 +177,7 @@ func NewIDPConfigReactivatedEvent(
}
}
func IDPConfigReactivatedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
func IDPConfigReactivatedEventMapper(event *repository.Event) (eventstore.Event, error) {
e, err := idpconfig.IDPConfigReactivatedEventMapper(event)
if err != nil {
return nil, err