Documentation
¶
Index ¶
- Constants
- func ApplyUserMutations(user model.User, userMutations event.UserMutations) (out model.User, mutated bool)
- func MakeUserMutations(user model.User) event.UserMutations
- func PerformEffectsOnUser(ctx context.Context, effectCtx event.MutationsEffectContext, userID string, ...) error
- type OIDCJWT
- type OIDCJWTPreCreateBlockingEventPayload
- func (e *OIDCJWTPreCreateBlockingEventPayload) ApplyMutations(ctx context.Context, mutations event.Mutations) bool
- func (e *OIDCJWTPreCreateBlockingEventPayload) BlockingEventType() event.Type
- func (e *OIDCJWTPreCreateBlockingEventPayload) FillContext(ctx *event.Context)
- func (e *OIDCJWTPreCreateBlockingEventPayload) GetTriggeredBy() event.TriggeredByType
- func (e *OIDCJWTPreCreateBlockingEventPayload) PerformEffects(ctx context.Context, effectCtx event.MutationsEffectContext) error
- func (e *OIDCJWTPreCreateBlockingEventPayload) UserID() string
- type UserPreCreateBlockingEventPayload
- func (e *UserPreCreateBlockingEventPayload) ApplyMutations(ctx context.Context, mutations event.Mutations) bool
- func (e *UserPreCreateBlockingEventPayload) BlockingEventType() event.Type
- func (e *UserPreCreateBlockingEventPayload) FillContext(ctx *event.Context)
- func (e *UserPreCreateBlockingEventPayload) GetTriggeredBy() event.TriggeredByType
- func (e *UserPreCreateBlockingEventPayload) PerformEffects(ctx context.Context, effectCtx event.MutationsEffectContext) error
- func (e *UserPreCreateBlockingEventPayload) UserID() string
- type UserPreScheduleAnonymizationBlockingEventPayload
- func (e *UserPreScheduleAnonymizationBlockingEventPayload) ApplyMutations(ctx context.Context, mutations event.Mutations) bool
- func (e *UserPreScheduleAnonymizationBlockingEventPayload) BlockingEventType() event.Type
- func (e *UserPreScheduleAnonymizationBlockingEventPayload) FillContext(ctx *event.Context)
- func (e *UserPreScheduleAnonymizationBlockingEventPayload) GetTriggeredBy() event.TriggeredByType
- func (e *UserPreScheduleAnonymizationBlockingEventPayload) PerformEffects(ctx context.Context, effectCtx event.MutationsEffectContext) error
- func (e *UserPreScheduleAnonymizationBlockingEventPayload) UserID() string
- type UserPreScheduleDeletionBlockingEventPayload
- func (e *UserPreScheduleDeletionBlockingEventPayload) ApplyMutations(ctx context.Context, mutations event.Mutations) bool
- func (e *UserPreScheduleDeletionBlockingEventPayload) BlockingEventType() event.Type
- func (e *UserPreScheduleDeletionBlockingEventPayload) FillContext(ctx *event.Context)
- func (e *UserPreScheduleDeletionBlockingEventPayload) GetTriggeredBy() event.TriggeredByType
- func (e *UserPreScheduleDeletionBlockingEventPayload) PerformEffects(ctx context.Context, effectCtx event.MutationsEffectContext) error
- func (e *UserPreScheduleDeletionBlockingEventPayload) UserID() string
- type UserProfilePreUpdateBlockingEventPayload
- func (e *UserProfilePreUpdateBlockingEventPayload) ApplyMutations(ctx context.Context, mutations event.Mutations) bool
- func (e *UserProfilePreUpdateBlockingEventPayload) BlockingEventType() event.Type
- func (e *UserProfilePreUpdateBlockingEventPayload) FillContext(ctx *event.Context)
- func (e *UserProfilePreUpdateBlockingEventPayload) GetTriggeredBy() event.TriggeredByType
- func (e *UserProfilePreUpdateBlockingEventPayload) PerformEffects(ctx context.Context, effectCtx event.MutationsEffectContext) error
- func (e *UserProfilePreUpdateBlockingEventPayload) UserID() string
Constants ¶
View Source
const (
OIDCJWTPreCreate event.Type = "oidc.jwt.pre_create"
)
View Source
const (
UserPreCreate event.Type = "user.pre_create"
)
View Source
const (
UserPreScheduleAnonymization event.Type = "user.pre_schedule_anonymization"
)
View Source
const (
UserPreScheduleDeletion event.Type = "user.pre_schedule_deletion"
)
View Source
const (
UserProfilePreUpdate event.Type = "user.profile.pre_update"
)
Variables ¶
This section is empty.
Functions ¶
func ApplyUserMutations ¶
func MakeUserMutations ¶
func MakeUserMutations(user model.User) event.UserMutations
func PerformEffectsOnUser ¶
func PerformEffectsOnUser(ctx context.Context, effectCtx event.MutationsEffectContext, userID string, userMutations event.UserMutations) error
Types ¶
type OIDCJWTPreCreateBlockingEventPayload ¶
type OIDCJWTPreCreateBlockingEventPayload struct { UserRef model.UserRef `json:"-" resolve:"user"` UserModel model.User `json:"user"` Identities []model.Identity `json:"identities"` JWT OIDCJWT `json:"jwt"` }
func (*OIDCJWTPreCreateBlockingEventPayload) ApplyMutations ¶
func (*OIDCJWTPreCreateBlockingEventPayload) BlockingEventType ¶
func (e *OIDCJWTPreCreateBlockingEventPayload) BlockingEventType() event.Type
func (*OIDCJWTPreCreateBlockingEventPayload) FillContext ¶
func (e *OIDCJWTPreCreateBlockingEventPayload) FillContext(ctx *event.Context)
func (*OIDCJWTPreCreateBlockingEventPayload) GetTriggeredBy ¶
func (e *OIDCJWTPreCreateBlockingEventPayload) GetTriggeredBy() event.TriggeredByType
func (*OIDCJWTPreCreateBlockingEventPayload) PerformEffects ¶
func (e *OIDCJWTPreCreateBlockingEventPayload) PerformEffects(ctx context.Context, effectCtx event.MutationsEffectContext) error
func (*OIDCJWTPreCreateBlockingEventPayload) UserID ¶
func (e *OIDCJWTPreCreateBlockingEventPayload) UserID() string
type UserPreCreateBlockingEventPayload ¶
type UserPreCreateBlockingEventPayload struct { UserRef model.UserRef `json:"-" resolve:"user"` UserModel model.User `json:"user"` Identities []model.Identity `json:"identities"` AdminAPI bool `json:"-"` }
func (*UserPreCreateBlockingEventPayload) ApplyMutations ¶
func (*UserPreCreateBlockingEventPayload) BlockingEventType ¶
func (e *UserPreCreateBlockingEventPayload) BlockingEventType() event.Type
func (*UserPreCreateBlockingEventPayload) FillContext ¶
func (e *UserPreCreateBlockingEventPayload) FillContext(ctx *event.Context)
func (*UserPreCreateBlockingEventPayload) GetTriggeredBy ¶
func (e *UserPreCreateBlockingEventPayload) GetTriggeredBy() event.TriggeredByType
func (*UserPreCreateBlockingEventPayload) PerformEffects ¶
func (e *UserPreCreateBlockingEventPayload) PerformEffects(ctx context.Context, effectCtx event.MutationsEffectContext) error
func (*UserPreCreateBlockingEventPayload) UserID ¶
func (e *UserPreCreateBlockingEventPayload) UserID() string
type UserPreScheduleAnonymizationBlockingEventPayload ¶
type UserPreScheduleAnonymizationBlockingEventPayload struct { UserRef model.UserRef `json:"-" resolve:"user"` UserModel model.User `json:"user"` AdminAPI bool `json:"-"` }
func (*UserPreScheduleAnonymizationBlockingEventPayload) ApplyMutations ¶
func (*UserPreScheduleAnonymizationBlockingEventPayload) BlockingEventType ¶
func (e *UserPreScheduleAnonymizationBlockingEventPayload) BlockingEventType() event.Type
func (*UserPreScheduleAnonymizationBlockingEventPayload) FillContext ¶
func (e *UserPreScheduleAnonymizationBlockingEventPayload) FillContext(ctx *event.Context)
func (*UserPreScheduleAnonymizationBlockingEventPayload) GetTriggeredBy ¶
func (e *UserPreScheduleAnonymizationBlockingEventPayload) GetTriggeredBy() event.TriggeredByType
func (*UserPreScheduleAnonymizationBlockingEventPayload) PerformEffects ¶
func (e *UserPreScheduleAnonymizationBlockingEventPayload) PerformEffects(ctx context.Context, effectCtx event.MutationsEffectContext) error
func (*UserPreScheduleAnonymizationBlockingEventPayload) UserID ¶
func (e *UserPreScheduleAnonymizationBlockingEventPayload) UserID() string
type UserPreScheduleDeletionBlockingEventPayload ¶
type UserPreScheduleDeletionBlockingEventPayload struct { UserRef model.UserRef `json:"-" resolve:"user"` UserModel model.User `json:"user"` AdminAPI bool `json:"-"` }
func (*UserPreScheduleDeletionBlockingEventPayload) ApplyMutations ¶
func (*UserPreScheduleDeletionBlockingEventPayload) BlockingEventType ¶
func (e *UserPreScheduleDeletionBlockingEventPayload) BlockingEventType() event.Type
func (*UserPreScheduleDeletionBlockingEventPayload) FillContext ¶
func (e *UserPreScheduleDeletionBlockingEventPayload) FillContext(ctx *event.Context)
func (*UserPreScheduleDeletionBlockingEventPayload) GetTriggeredBy ¶
func (e *UserPreScheduleDeletionBlockingEventPayload) GetTriggeredBy() event.TriggeredByType
func (*UserPreScheduleDeletionBlockingEventPayload) PerformEffects ¶
func (e *UserPreScheduleDeletionBlockingEventPayload) PerformEffects(ctx context.Context, effectCtx event.MutationsEffectContext) error
func (*UserPreScheduleDeletionBlockingEventPayload) UserID ¶
func (e *UserPreScheduleDeletionBlockingEventPayload) UserID() string
type UserProfilePreUpdateBlockingEventPayload ¶
type UserProfilePreUpdateBlockingEventPayload struct { UserRef model.UserRef `json:"-" resolve:"user"` UserModel model.User `json:"user"` AdminAPI bool `json:"-"` }
func (*UserProfilePreUpdateBlockingEventPayload) ApplyMutations ¶
func (*UserProfilePreUpdateBlockingEventPayload) BlockingEventType ¶
func (e *UserProfilePreUpdateBlockingEventPayload) BlockingEventType() event.Type
func (*UserProfilePreUpdateBlockingEventPayload) FillContext ¶
func (e *UserProfilePreUpdateBlockingEventPayload) FillContext(ctx *event.Context)
func (*UserProfilePreUpdateBlockingEventPayload) GetTriggeredBy ¶
func (e *UserProfilePreUpdateBlockingEventPayload) GetTriggeredBy() event.TriggeredByType
func (*UserProfilePreUpdateBlockingEventPayload) PerformEffects ¶
func (e *UserProfilePreUpdateBlockingEventPayload) PerformEffects(ctx context.Context, effectCtx event.MutationsEffectContext) error
func (*UserProfilePreUpdateBlockingEventPayload) UserID ¶
func (e *UserProfilePreUpdateBlockingEventPayload) UserID() string
Click to show internal directories.
Click to hide internal directories.