event

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2022 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserInvitedEvent         events.EventName = "user_invited"
	UserInviteConsumedEvent  events.EventName = "user_invite_consumed"
	UserConfirmedEvent       events.EventName = "user_confirmed"
	UserSignupEvent          events.EventName = "user_signup"
	UserLockedEvent          events.EventName = "user_locked"
	UserUnlockedEvent        events.EventName = "user_unlocked"
	UserSignedInByTokenEvent events.EventName = "user_token_signin"

	UserBannedEvent   events.EventName = "user_banned"
	UserUnbannedEvent events.EventName = "user_unbanned"

	UserLoginEvent events.EventName = "user_login"

	UserMFAEnabledEvent  events.EventName = "user_mfa_enabled"
	UserMFADisabledEvent events.EventName = "user_mfa_disabled"

	UserPasswordRecoveryRequestedEvent events.EventName = "user_password_recovery_requested"
	UserPasswordRecoveryUsedEvent      events.EventName = "user_password_recovery_used"
	UserEmailChangedEvent              events.EventName = "user_email_changed"
	UserPasswordChangedEvent           events.EventName = "user_password_changed"

	UserRemovedFromRoleEvent events.EventName = "user_removed_from_role"
	UserAddedToRoleEvent     events.EventName = "user_added_to_role"

	AuthorizationGrantedEvent events.EventName = "authorization_granted"
	AuthorizationRevokedEvent events.EventName = "authorization_revoked"

	TokenAlreadyRedeemedEvent events.EventName = "token_already_redeemed"
	TokenRevokedEvent         events.EventName = "token_revoked"

	EmailPasswordRecoverySentEvent events.EventName = "email_password_recovery_sent"
	EmailSignupConfirmSentEvent    events.EventName = "email_signup_confirm_sent"
	EmailInviteSentEvent           events.EventName = "email_invite_sent"

	ApplicationCreatedEvent events.EventName = "application_created"
	ApplicationRetiredEvent events.EventName = "application_retired"

	ApplicationSettingsChangedEvent events.EventName = "application_changed"

	AllRetiredApplicationsPurgedEvent events.EventName = "retired_applications_purged"

	RoleCreatedEvent events.EventName = "role_created"
	RoleDeletedEvent events.EventName = "role_deleted"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AllRetiredApplicationsPurged

type AllRetiredApplicationsPurged struct {
	AffectedClientIDs []string
}

func (*AllRetiredApplicationsPurged) Name

type ApplicationCreated

type ApplicationCreated struct {
	ApplicationID   int
	ClientID        string
	ApplicationName string
}

func (*ApplicationCreated) Name

type ApplicationRetired

type ApplicationRetired struct {
	ApplicationID   int
	ClientID        string
	ApplicationName string
}

func (*ApplicationRetired) Name

type ApplicationSettingsChanged

type ApplicationSettingsChanged struct {
	ApplicationID   int
	ClientID        string
	ApplicationName string
	Property        string
	Value           string
}

func (*ApplicationSettingsChanged) Name

type AuthorizationGranted

type AuthorizationGranted struct {
	AuthorizationID uuid.UUID
	UserID          uuid.UUID
	ApplicationID   int
	Scopes          []string
}

func (*AuthorizationGranted) Name

type AuthorizationRevoked

type AuthorizationRevoked struct {
	AuthorizationID uuid.UUID
	UserID          uuid.UUID
	ApplicationID   int
	TokensAffected  int64
}

func (*AuthorizationRevoked) Name

type EmailInviteSent

type EmailInviteSent struct {
	InviteCode string
	Email      string
	Sent       time.Time
}

func (*EmailInviteSent) Name

type EmailPasswordRecoverySent

type EmailPasswordRecoverySent struct {
	UserID       uuid.UUID
	ConfirmToken string
	Email        string
	Sent         time.Time
}

func (*EmailPasswordRecoverySent) Name

type EmailSignupConfirmSent

type EmailSignupConfirmSent struct {
	UserID       uuid.UUID
	ConfirmToken string
	Email        string
	Sent         time.Time
}

func (*EmailSignupConfirmSent) Name

type RoleCreated

type RoleCreated struct {
	Role string
}

func (*RoleCreated) Name

func (*RoleCreated) Name() events.EventName

type RoleDeleted

type RoleDeleted struct {
	Role string
}

func (*RoleDeleted) Name

func (*RoleDeleted) Name() events.EventName

type TokenAlreadyRedeemed

type TokenAlreadyRedeemed struct {
	TokenID         int
	AuthorizationID uuid.UUID
	UserID          uuid.UUID
	Token           string
	TokenType       string
}

func (*TokenAlreadyRedeemed) Name

type TokenRevoked

type TokenRevoked struct {
	TokenID         int
	AuthorizationID uuid.UUID
	UserID          uuid.UUID
	Token           string
	TokenType       string
}

func (*TokenRevoked) Name

func (*TokenRevoked) Name() events.EventName

type UserAddedToRole

type UserAddedToRole struct {
	UserID uuid.UUID
	Role   string
}

func (*UserAddedToRole) Name

type UserBanned

type UserBanned struct {
	UserID uuid.UUID
}

func (*UserBanned) Name

func (*UserBanned) Name() events.EventName

type UserConfirmed

type UserConfirmed struct {
	UserID        uuid.UUID
	AutoConfirmed bool
	ConfirmCode   string
}

func (*UserConfirmed) Name

func (*UserConfirmed) Name() events.EventName

type UserEmailChanged

type UserEmailChanged struct {
	UserID uuid.UUID
	Email  string
}

func (*UserEmailChanged) Name

type UserInviteConsumed

type UserInviteConsumed struct {
	InviteCode string
	UserID     uuid.UUID
}

func (*UserInviteConsumed) Name

type UserInvited

type UserInvited struct {
	InviteCode string
	Email      string
	ExpiryDate time.Time
}

func (*UserInvited) Name

func (*UserInvited) Name() events.EventName

type UserLocked

type UserLocked struct {
	UserID      uuid.UUID
	LockedUntil time.Time
}

func (*UserLocked) Name

func (*UserLocked) Name() events.EventName

type UserLogin

type UserLogin struct {
	UserID uuid.UUID
}

func (*UserLogin) Name

func (*UserLogin) Name() events.EventName

type UserMFADisabled

type UserMFADisabled struct {
	UserID uuid.UUID
}

func (*UserMFADisabled) Name

type UserMFAEnabled

type UserMFAEnabled struct {
	UserID uuid.UUID
}

func (*UserMFAEnabled) Name

type UserPasswordChanged

type UserPasswordChanged struct {
	UserID uuid.UUID
}

func (*UserPasswordChanged) Name

type UserPasswordRecoveryRequested

type UserPasswordRecoveryRequested struct {
	UserID uuid.UUID
}

func (*UserPasswordRecoveryRequested) Name

type UserPasswordRecoveryUsed

type UserPasswordRecoveryUsed struct {
	UserID uuid.UUID
	Token  string
	Email  string
}

func (*UserPasswordRecoveryUsed) Name

type UserRemovedFromRole

type UserRemovedFromRole struct {
	UserID uuid.UUID
	Role   string
}

func (*UserRemovedFromRole) Name

type UserSignedInByToken

type UserSignedInByToken struct {
	UserID    uuid.UUID
	TokenType string
}

func (*UserSignedInByToken) Name

type UserSignup

type UserSignup struct {
	UserID uuid.UUID
	Email  string
}

func (*UserSignup) Name

func (*UserSignup) Name() events.EventName

type UserUnbanned

type UserUnbanned struct {
	UserID uuid.UUID
}

func (*UserUnbanned) Name

func (*UserUnbanned) Name() events.EventName

type UserUnlocked

type UserUnlocked struct {
	UserID uuid.UUID
}

func (*UserUnlocked) Name

func (*UserUnlocked) Name() events.EventName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL