2021-01-22 12:31:52 +00:00
|
|
|
package usergrant
|
|
|
|
|
|
|
|
import (
|
2021-02-23 14:13:04 +00:00
|
|
|
"github.com/caos/zitadel/internal/eventstore"
|
2021-01-22 12:31:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterEventMappers(es *eventstore.Eventstore) {
|
|
|
|
es.RegisterFilterEventMapper(UserGrantAddedType, UserGrantAddedEventMapper).
|
|
|
|
RegisterFilterEventMapper(UserGrantChangedType, UserGrantChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(UserGrantCascadeChangedType, UserGrantCascadeChangedEventMapper).
|
|
|
|
RegisterFilterEventMapper(UserGrantRemovedType, UserGrantRemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(UserGrantCascadeRemovedType, UserGrantCascadeRemovedEventMapper).
|
|
|
|
RegisterFilterEventMapper(UserGrantDeactivatedType, UserGrantDeactivatedEventMapper).
|
|
|
|
RegisterFilterEventMapper(UserGrantReactivatedType, UserGrantReactivatedEventMapper)
|
|
|
|
}
|