mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 20:38:00 +00:00
28 lines
482 B
Go
28 lines
482 B
Go
|
package debug_events
|
||
|
|
||
|
import (
|
||
|
"github.com/zitadel/zitadel/internal/eventstore"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
eventTypePrefix = eventstore.EventType("debug.")
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
AggregateType = "debug"
|
||
|
AggregateVersion = "v1"
|
||
|
)
|
||
|
|
||
|
type Aggregate struct {
|
||
|
eventstore.Aggregate
|
||
|
}
|
||
|
|
||
|
func NewAggregate(id, resourceOwner string) *eventstore.Aggregate {
|
||
|
return &eventstore.Aggregate{
|
||
|
Type: AggregateType,
|
||
|
Version: AggregateVersion,
|
||
|
ID: id,
|
||
|
ResourceOwner: resourceOwner,
|
||
|
}
|
||
|
}
|