mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 00:57:33 +00:00
refactor(v2): init events (#7823)
creates events structures for initial projections and read models
This commit is contained in:
@@ -34,8 +34,12 @@ type GlobalPosition struct {
|
||||
InPositionOrder uint32
|
||||
}
|
||||
|
||||
type Reducer interface {
|
||||
Reduce(events ...*Event[StoragePayload]) error
|
||||
func (gp GlobalPosition) IsLess(other GlobalPosition) bool {
|
||||
return gp.Position < other.Position || (gp.Position == other.Position && gp.InPositionOrder < other.InPositionOrder)
|
||||
}
|
||||
|
||||
type Reduce func(events ...*Event[StoragePayload]) error
|
||||
type Reducer interface {
|
||||
Reduce(events ...*StorageEvent) error
|
||||
}
|
||||
|
||||
type Reduce func(events ...*StorageEvent) error
|
||||
|
Reference in New Issue
Block a user