zitadel/internal/v2/repository/idp/event_deactivated.go
2020-11-17 13:44:37 +01:00

29 lines
450 B
Go

package idp
import "github.com/caos/zitadel/internal/eventstore/v2"
type DeactivatedEvent struct {
eventstore.BaseEvent
ID string `idpConfigId`
}
func NewDeactivatedEvent(
base *eventstore.BaseEvent,
configID string,
) *DeactivatedEvent {
return &DeactivatedEvent{
BaseEvent: *base,
ID: configID,
}
}
func (e *DeactivatedEvent) CheckPrevious() bool {
return true
}
func (e *DeactivatedEvent) Data() interface{} {
return e
}