zitadel/internal/v2/repository/idp/event_added.go

32 lines
469 B
Go
Raw Normal View History

2020-11-17 12:44:37 +00:00
package idp
import "github.com/caos/zitadel/internal/eventstore/v2"
type AddedEvent struct {
eventstore.BaseEvent
ID string `idpConfigId`
Name string `name`
}
func NewAddedEvent(
base *eventstore.BaseEvent,
configID string,
name string,
) *AddedEvent {
return &AddedEvent{
BaseEvent: *base,
ID: configID,
Name: name,
}
}
func (e *AddedEvent) CheckPrevious() bool {
return true
}
func (e *AddedEvent) Data() interface{} {
return e
}