mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 23:57:31 +00:00
refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907)
This commit is contained in:
@@ -4,7 +4,8 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type EventPusher interface {
|
||||
// Command is the intend to store an event into the eventstore
|
||||
type Command interface {
|
||||
//Aggregate is the metadata of an aggregate
|
||||
Aggregate() Aggregate
|
||||
// EditorService is the service who wants to push the event
|
||||
@@ -24,7 +25,8 @@ type EventPusher interface {
|
||||
UniqueConstraints() []*EventUniqueConstraint
|
||||
}
|
||||
|
||||
type EventReader interface {
|
||||
// Event is a stored activity
|
||||
type Event interface {
|
||||
// EditorService is the service who pushed the event
|
||||
EditorService() string
|
||||
//EditorUser is the user who pushed the event
|
||||
|
Reference in New Issue
Block a user