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

29 lines
450 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 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
}