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
+2 -2
View File
@@ -20,7 +20,7 @@ func (c *Commands) SetIAMCustomText(ctx context.Context, customText *domain.Cust
return nil, err
}
pushedEvents, err := c.eventstore.PushEvents(ctx, event)
pushedEvents, err := c.eventstore.Push(ctx, event)
if err != nil {
return nil, err
}
@@ -31,7 +31,7 @@ func (c *Commands) SetIAMCustomText(ctx context.Context, customText *domain.Cust
return writeModelToCustomText(&setText.CustomTextWriteModel), nil
}
func (c *Commands) setDefaultCustomText(ctx context.Context, iamAgg *eventstore.Aggregate, addedPolicy *IAMCustomTextWriteModel, text *domain.CustomText) (eventstore.EventPusher, error) {
func (c *Commands) setDefaultCustomText(ctx context.Context, iamAgg *eventstore.Aggregate, addedPolicy *IAMCustomTextWriteModel, text *domain.CustomText) (eventstore.Command, error) {
if !text.IsValid() {
return nil, caos_errs.ThrowInvalidArgument(nil, "IAM-3MN0s", "Errors.CustomText.Invalid")
}