user

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AggregateType    = "user"
	AggregateVersion = "v2"
)
View Source
const (
	HumanAddedType                     = humanEventPrefix + "added"
	HumanRegisteredType                = humanEventPrefix + "selfregistered"
	HumanInitialCodeAddedType          = humanEventPrefix + "initialization.code.added"
	HumanInitialCodeSentType           = humanEventPrefix + "initialization.code.sent"
	HumanInitializedCheckSucceededType = humanEventPrefix + "initialization.check.succeeded"
	HumanInitializedCheckFailedType    = humanEventPrefix + "initialization.check.failed"
	HumanSignedOutType                 = humanEventPrefix + "signed.out"
)
View Source
const (
	HumanAvatarAddedType   = avatarEventPrefix + "added"
	HumanAvatarRemovedType = avatarEventPrefix + "removed"
)
View Source
const (
	HumanEmailChangedType            = emailEventPrefix + "changed"
	HumanEmailVerifiedType           = emailEventPrefix + "verified"
	HumanEmailVerificationFailedType = emailEventPrefix + "verification.failed"
	HumanEmailCodeAddedType          = emailEventPrefix + "code.added"
	HumanEmailCodeSentType           = emailEventPrefix + "code.sent"
)
View Source
const (
	UniqueUserIDPLinkType  = "external_idps"
	UserIDPLinkEventPrefix = humanEventPrefix + "externalidp."

	UserIDPLinkAddedType          = UserIDPLinkEventPrefix + "added"
	UserIDPLinkRemovedType        = UserIDPLinkEventPrefix + "removed"
	UserIDPLinkCascadeRemovedType = UserIDPLinkEventPrefix + "cascade.removed"

	UserIDPLoginCheckSucceededType = idpLoginEventPrefix + "check.succeeded"
)
View Source
const (
	HumanMFAOTPAddedType          = otpEventPrefix + "added"
	HumanMFAOTPVerifiedType       = otpEventPrefix + "verified"
	HumanMFAOTPRemovedType        = otpEventPrefix + "removed"
	HumanMFAOTPCheckSucceededType = otpEventPrefix + "check.succeeded"
	HumanMFAOTPCheckFailedType    = otpEventPrefix + "check.failed"
)
View Source
const (
	HumanPasswordlessTokenAddedType            = humanPasswordlessTokenEventPrefix + "added"
	HumanPasswordlessTokenVerifiedType         = humanPasswordlessTokenEventPrefix + "verified"
	HumanPasswordlessTokenSignCountChangedType = humanPasswordlessTokenEventPrefix + "signcount.changed"
	HumanPasswordlessTokenRemovedType          = humanPasswordlessTokenEventPrefix + "removed"
	HumanPasswordlessTokenBeginLoginType       = humanPasswordlessTokenEventPrefix + "begin.login"
	HumanPasswordlessTokenCheckSucceededType   = humanPasswordlessTokenEventPrefix + "check.succeeded"
	HumanPasswordlessTokenCheckFailedType      = humanPasswordlessTokenEventPrefix + "check.failed"

	HumanPasswordlessInitCodeAddedType          = humanPasswordlessInitCodePrefix + "added"
	HumanPasswordlessInitCodeRequestedType      = humanPasswordlessInitCodePrefix + "requested"
	HumanPasswordlessInitCodeSentType           = humanPasswordlessInitCodePrefix + "sent"
	HumanPasswordlessInitCodeCheckFailedType    = humanPasswordlessInitCodePrefix + "check.failed"
	HumanPasswordlessInitCodeCheckSucceededType = humanPasswordlessInitCodePrefix + "check.succeeded"
)
View Source
const (
	HumanU2FTokenAddedType            = u2fEventPrefix + "added"
	HumanU2FTokenVerifiedType         = u2fEventPrefix + "verified"
	HumanU2FTokenSignCountChangedType = u2fEventPrefix + "signcount.changed"
	HumanU2FTokenRemovedType          = u2fEventPrefix + "removed"
	HumanU2FTokenBeginLoginType       = u2fEventPrefix + "begin.login"
	HumanU2FTokenCheckSucceededType   = u2fEventPrefix + "check.succeeded"
	HumanU2FTokenCheckFailedType      = u2fEventPrefix + "check.failed"
)
View Source
const (
	HumanPasswordChangedType        = passwordEventPrefix + "changed"
	HumanPasswordCodeAddedType      = passwordEventPrefix + "code.added"
	HumanPasswordCodeSentType       = passwordEventPrefix + "code.sent"
	HumanPasswordCheckSucceededType = passwordEventPrefix + "check.succeeded"
	HumanPasswordCheckFailedType    = passwordEventPrefix + "check.failed"
)
View Source
const (
	HumanPhoneChangedType            = phoneEventPrefix + "changed"
	HumanPhoneRemovedType            = phoneEventPrefix + "removed"
	HumanPhoneVerifiedType           = phoneEventPrefix + "verified"
	HumanPhoneVerificationFailedType = phoneEventPrefix + "verification.failed"
	HumanPhoneCodeAddedType          = phoneEventPrefix + "code.added"
	HumanPhoneCodeSentType           = phoneEventPrefix + "code.sent"
)
View Source
const (
	HumanRefreshTokenAddedType   = refreshTokenEventPrefix + "added"
	HumanRefreshTokenRenewedType = refreshTokenEventPrefix + "renewed"
	HumanRefreshTokenRemovedType = refreshTokenEventPrefix + "removed"
)
View Source
const (
	MachineAddedEventType   = machineEventPrefix + "added"
	MachineChangedEventType = machineEventPrefix + "changed"
)
View Source
const (
	MachineKeyAddedEventType   = machineKeyEventPrefix + "added"
	MachineKeyRemovedEventType = machineKeyEventPrefix + "removed"
)
View Source
const (
	MetadataSetType        = userEventTypePrefix + metadata.SetEventType
	MetadataRemovedType    = userEventTypePrefix + metadata.RemovedEventType
	MetadataRemovedAllType = userEventTypePrefix + metadata.RemovedAllEventType
)
View Source
const (
	PersonalAccessTokenAddedType   = personalAccessTokenEventPrefix + "added"
	PersonalAccessTokenRemovedType = personalAccessTokenEventPrefix + "removed"
)
View Source
const (
	UniqueUsername = "usernames"

	UserLockedType            = userEventTypePrefix + "locked"
	UserUnlockedType          = userEventTypePrefix + "unlocked"
	UserDeactivatedType       = userEventTypePrefix + "deactivated"
	UserReactivatedType       = userEventTypePrefix + "reactivated"
	UserRemovedType           = userEventTypePrefix + "removed"
	UserTokenAddedType        = userEventTypePrefix + "token.added"
	UserTokenRemovedType      = userEventTypePrefix + "token.removed"
	UserDomainClaimedType     = userEventTypePrefix + "domain.claimed"
	UserDomainClaimedSentType = userEventTypePrefix + "domain.claimed.sent"
	UserUserNameChangedType   = userEventTypePrefix + "username.changed"
)
View Source
const (
	UserV1AddedType                     = userEventTypePrefix + "added"
	UserV1RegisteredType                = userEventTypePrefix + "selfregistered"
	UserV1InitialCodeAddedType          = userEventTypePrefix + "initialization.code.added"
	UserV1InitialCodeSentType           = userEventTypePrefix + "initialization.code.sent"
	UserV1InitializedCheckSucceededType = userEventTypePrefix + "initialization.check.succeeded"
	UserV1InitializedCheckFailedType    = userEventTypePrefix + "initialization.check.failed"
	UserV1SignedOutType                 = userEventTypePrefix + "signed.out"

	UserV1PasswordChangedType        = userV1PasswordEventTypePrefix + "changed"
	UserV1PasswordCodeAddedType      = userV1PasswordEventTypePrefix + "code.added"
	UserV1PasswordCodeSentType       = userV1PasswordEventTypePrefix + "code.sent"
	UserV1PasswordCheckSucceededType = userV1PasswordEventTypePrefix + "check.succeeded"
	UserV1PasswordCheckFailedType    = userV1PasswordEventTypePrefix + "check.failed"

	UserV1EmailChangedType            = userV1EmailEventTypePrefix + "changed"
	UserV1EmailVerifiedType           = userV1EmailEventTypePrefix + "verified"
	UserV1EmailVerificationFailedType = userV1EmailEventTypePrefix + "verification.failed"
	UserV1EmailCodeAddedType          = userV1EmailEventTypePrefix + "code.added"
	UserV1EmailCodeSentType           = userV1EmailEventTypePrefix + "code.sent"

	UserV1PhoneChangedType            = userV1PhoneEventTypePrefix + "changed"
	UserV1PhoneRemovedType            = userV1PhoneEventTypePrefix + "removed"
	UserV1PhoneVerifiedType           = userV1PhoneEventTypePrefix + "verified"
	UserV1PhoneVerificationFailedType = userV1PhoneEventTypePrefix + "verification.failed"
	UserV1PhoneCodeAddedType          = userV1PhoneEventTypePrefix + "code.added"
	UserV1PhoneCodeSentType           = userV1PhoneEventTypePrefix + "code.sent"

	UserV1ProfileChangedType = userV1ProfileEventTypePrefix + "changed"

	UserV1AddressChangedType = userV1AddressEventTypePrefix + "changed"

	UserV1MFAInitSkippedType = userV1MFAOTPEventTypePrefix + "init.skipped"

	UserV1MFAOTPAddedType          = userV1MFAOTPEventTypePrefix + "added"
	UserV1MFAOTPRemovedType        = userV1MFAOTPEventTypePrefix + "removed"
	UserV1MFAOTPVerifiedType       = userV1MFAOTPEventTypePrefix + "verified"
	UserV1MFAOTPCheckSucceededType = userV1MFAOTPEventTypePrefix + "check.succeeded"
	UserV1MFAOTPCheckFailedType    = userV1MFAOTPEventTypePrefix + "check.failed"
)
View Source
const (
	HumanAddressChangedType = addressEventPrefix + "changed"
)
View Source
const (
	HumanMFAInitSkippedType = mfaEventPrefix + "init.skipped"
)
View Source
const (
	HumanProfileChangedType = profileEventPrefix + "changed"
)

Variables

This section is empty.

Functions

func ChangeCountry

func ChangeCountry(country string) func(event *HumanAddressChangedEvent)

func ChangeDescription

func ChangeDescription(description string) func(event *MachineChangedEvent)

func ChangeDisplayName

func ChangeDisplayName(displayName string) func(event *HumanProfileChangedEvent)

func ChangeFirstName

func ChangeFirstName(firstName string) func(event *HumanProfileChangedEvent)

func ChangeGender

func ChangeGender(gender domain.Gender) func(event *HumanProfileChangedEvent)

func ChangeLastName

func ChangeLastName(lastName string) func(event *HumanProfileChangedEvent)

func ChangeLocality

func ChangeLocality(locality string) func(event *HumanAddressChangedEvent)

func ChangeName

func ChangeName(name string) func(event *MachineChangedEvent)

func ChangeNickName

func ChangeNickName(nickName string) func(event *HumanProfileChangedEvent)

func ChangePostalCode

func ChangePostalCode(code string) func(event *HumanAddressChangedEvent)

func ChangePreferredLanguage

func ChangePreferredLanguage(language language.Tag) func(event *HumanProfileChangedEvent)

func ChangeRegion

func ChangeRegion(region string) func(event *HumanAddressChangedEvent)

func ChangeStreetAddress

func ChangeStreetAddress(street string) func(event *HumanAddressChangedEvent)

func DomainClaimedEventMapper

func DomainClaimedEventMapper(event *repository.Event) (eventstore.Event, error)

func DomainClaimedSentEventMapper

func DomainClaimedSentEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanAddedEventMapper

func HumanAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanAddressChangedEventMapper

func HumanAddressChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanAvatarAddedEventMapper

func HumanAvatarAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanAvatarRemovedEventMapper

func HumanAvatarRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanEmailChangedEventMapper

func HumanEmailChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanEmailCodeAddedEventMapper

func HumanEmailCodeAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanEmailCodeSentEventMapper

func HumanEmailCodeSentEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanEmailVerificationFailedEventMapper

func HumanEmailVerificationFailedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanEmailVerifiedEventMapper

func HumanEmailVerifiedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanInitialCodeAddedEventMapper

func HumanInitialCodeAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanInitialCodeSentEventMapper

func HumanInitialCodeSentEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanInitializedCheckFailedEventMapper

func HumanInitializedCheckFailedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanInitializedCheckSucceededEventMapper

func HumanInitializedCheckSucceededEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanMFAInitSkippedEventMapper

func HumanMFAInitSkippedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanOTPAddedEventMapper

func HumanOTPAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanOTPCheckFailedEventMapper

func HumanOTPCheckFailedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanOTPCheckSucceededEventMapper

func HumanOTPCheckSucceededEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanOTPRemovedEventMapper

func HumanOTPRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanOTPVerifiedEventMapper

func HumanOTPVerifiedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordChangedEventMapper

func HumanPasswordChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordCheckFailedEventMapper

func HumanPasswordCheckFailedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordCheckSucceededEventMapper

func HumanPasswordCheckSucceededEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordCodeAddedEventMapper

func HumanPasswordCodeAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordCodeSentEventMapper

func HumanPasswordCodeSentEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessAddedEventMapper

func HumanPasswordlessAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessBeginLoginEventMapper

func HumanPasswordlessBeginLoginEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessCheckFailedEventMapper

func HumanPasswordlessCheckFailedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessCheckSucceededEventMapper

func HumanPasswordlessCheckSucceededEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessInitCodeAddedEventMapper

func HumanPasswordlessInitCodeAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessInitCodeCodeCheckFailedEventMapper

func HumanPasswordlessInitCodeCodeCheckFailedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessInitCodeCodeCheckSucceededEventMapper

func HumanPasswordlessInitCodeCodeCheckSucceededEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessInitCodeRequestedEventMapper

func HumanPasswordlessInitCodeRequestedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessInitCodeSentEventMapper

func HumanPasswordlessInitCodeSentEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessRemovedEventMapper

func HumanPasswordlessRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessSignCountChangedEventMapper

func HumanPasswordlessSignCountChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPasswordlessVerifiedEventMapper

func HumanPasswordlessVerifiedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPhoneChangedEventMapper

func HumanPhoneChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPhoneCodeAddedEventMapper

func HumanPhoneCodeAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPhoneCodeSentEventMapper

func HumanPhoneCodeSentEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPhoneRemovedEventMapper

func HumanPhoneRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPhoneVerificationFailedEventMapper

func HumanPhoneVerificationFailedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanPhoneVerifiedEventMapper

func HumanPhoneVerifiedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanProfileChangedEventMapper

func HumanProfileChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanRefreshTokenAddedEventMapper

func HumanRefreshTokenAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanRefreshTokenRemovedEventEventMapper

func HumanRefreshTokenRemovedEventEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanRefreshTokenRenewedEventEventMapper

func HumanRefreshTokenRenewedEventEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanRegisteredEventMapper

func HumanRegisteredEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanSignedOutEventMapper

func HumanSignedOutEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanU2FAddedEventMapper

func HumanU2FAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanU2FBeginLoginEventMapper

func HumanU2FBeginLoginEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanU2FCheckFailedEventMapper

func HumanU2FCheckFailedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanU2FCheckSucceededEventMapper

func HumanU2FCheckSucceededEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanU2FRemovedEventMapper

func HumanU2FRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanU2FSignCountChangedEventMapper

func HumanU2FSignCountChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanU2FVerifiedEventMapper

func HumanU2FVerifiedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanWebAuthNAddedEventMapper

func HumanWebAuthNAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanWebAuthNBeginLoginEventMapper

func HumanWebAuthNBeginLoginEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanWebAuthNCheckFailedEventMapper

func HumanWebAuthNCheckFailedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanWebAuthNCheckSucceededEventMapper

func HumanWebAuthNCheckSucceededEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanWebAuthNRemovedEventMapper

func HumanWebAuthNRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanWebAuthNSignCountChangedEventMapper

func HumanWebAuthNSignCountChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func HumanWebAuthNVerifiedEventMapper

func HumanWebAuthNVerifiedEventMapper(event *repository.Event) (eventstore.Event, error)

func MachineAddedEventMapper

func MachineAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func MachineChangedEventMapper

func MachineChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func MachineKeyAddedEventMapper

func MachineKeyAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func MachineKeyRemovedEventMapper

func MachineKeyRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func MetadataRemovedAllEventMapper

func MetadataRemovedAllEventMapper(event *repository.Event) (eventstore.Event, error)

func MetadataRemovedEventMapper

func MetadataRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func MetadataSetEventMapper

func MetadataSetEventMapper(event *repository.Event) (eventstore.Event, error)

func NewAddUserIDPLinkUniqueConstraint

func NewAddUserIDPLinkUniqueConstraint(idpConfigID, externalUserID string) *eventstore.EventUniqueConstraint

func NewAddUsernameUniqueConstraint

func NewAddUsernameUniqueConstraint(userName, resourceOwner string, userLoginMustBeDomain bool) *eventstore.EventUniqueConstraint

func NewRemoveUserIDPLinkUniqueConstraint

func NewRemoveUserIDPLinkUniqueConstraint(idpConfigID, externalUserID string) *eventstore.EventUniqueConstraint

func NewRemoveUsernameUniqueConstraint

func NewRemoveUsernameUniqueConstraint(userName, resourceOwner string, userLoginMustBeDomain bool) *eventstore.EventUniqueConstraint

func PersonalAccessTokenAddedEventMapper

func PersonalAccessTokenAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func PersonalAccessTokenRemovedEventMapper

func PersonalAccessTokenRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func PrepareHumanPasswordlessRemovedEvent

func PrepareHumanPasswordlessRemovedEvent(ctx context.Context, webAuthNTokenID string) func(*eventstore.Aggregate) eventstore.Command

func PrepareHumanU2FRemovedEvent

func PrepareHumanU2FRemovedEvent(ctx context.Context, webAuthNTokenID string) func(*eventstore.Aggregate) eventstore.Command

func RegisterEventMappers

func RegisterEventMappers(es *eventstore.Eventstore)

func UserDeactivatedEventMapper

func UserDeactivatedEventMapper(event *repository.Event) (eventstore.Event, error)

func UserIDPCheckSucceededEventMapper

func UserIDPCheckSucceededEventMapper(event *repository.Event) (eventstore.Event, error)

func UserIDPLinkAddedEventMapper

func UserIDPLinkAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func UserIDPLinkCascadeRemovedEventMapper

func UserIDPLinkCascadeRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func UserIDPLinkRemovedEventMapper

func UserIDPLinkRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func UserLockedEventMapper

func UserLockedEventMapper(event *repository.Event) (eventstore.Event, error)

func UserReactivatedEventMapper

func UserReactivatedEventMapper(event *repository.Event) (eventstore.Event, error)

func UserRemovedEventMapper

func UserRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func UserTokenAddedEventMapper

func UserTokenAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func UserTokenRemovedEventMapper

func UserTokenRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func UserUnlockedEventMapper

func UserUnlockedEventMapper(event *repository.Event) (eventstore.Event, error)

func UsernameChangedEventMapper

func UsernameChangedEventMapper(event *repository.Event) (eventstore.Event, error)

Types

type AddressChanges

type AddressChanges func(event *HumanAddressChangedEvent)

type Aggregate

type Aggregate struct {
	eventstore.Aggregate
}

func NewAggregate

func NewAggregate(id, resourceOwner string) *Aggregate

type AuthRequestInfo

type AuthRequestInfo struct {
	ID                  string `json:"id,omitempty"`
	UserAgentID         string `json:"userAgentID,omitempty"`
	SelectedIDPConfigID string `json:"selectedIDPConfigID,omitempty"`
	*BrowserInfo
}

type BrowserInfo

type BrowserInfo struct {
	UserAgent      string `json:"userAgent,omitempty"`
	AcceptLanguage string `json:"acceptLanguage,omitempty"`
	RemoteIP       net.IP `json:"remoteIP,omitempty"`
}

type DomainClaimedEvent

type DomainClaimedEvent struct {
	eventstore.BaseEvent `json:"-"`

	UserName string `json:"userName"`
	// contains filtered or unexported fields
}

func NewDomainClaimedEvent

func NewDomainClaimedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userName,
	oldUserName string,
	userLoginMustBeDomain bool,
) *DomainClaimedEvent

func (*DomainClaimedEvent) Data

func (e *DomainClaimedEvent) Data() interface{}

func (*DomainClaimedEvent) UniqueConstraints

func (e *DomainClaimedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type DomainClaimedSentEvent

type DomainClaimedSentEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewDomainClaimedSentEvent

func NewDomainClaimedSentEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *DomainClaimedSentEvent

func (*DomainClaimedSentEvent) Data

func (e *DomainClaimedSentEvent) Data() interface{}

func (*DomainClaimedSentEvent) UniqueConstraints

func (e *DomainClaimedSentEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanAddedEvent

type HumanAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	UserName string `json:"userName"`

	FirstName         string        `json:"firstName,omitempty"`
	LastName          string        `json:"lastName,omitempty"`
	NickName          string        `json:"nickName,omitempty"`
	DisplayName       string        `json:"displayName,omitempty"`
	PreferredLanguage language.Tag  `json:"preferredLanguage,omitempty"`
	Gender            domain.Gender `json:"gender,omitempty"`

	EmailAddress string `json:"email,omitempty"`

	PhoneNumber string `json:"phone,omitempty"`

	Country       string `json:"country,omitempty"`
	Locality      string `json:"locality,omitempty"`
	PostalCode    string `json:"postalCode,omitempty"`
	Region        string `json:"region,omitempty"`
	StreetAddress string `json:"streetAddress,omitempty"`

	Secret         *crypto.CryptoValue `json:"secret,omitempty"`
	ChangeRequired bool                `json:"changeRequired,omitempty"`
	// contains filtered or unexported fields
}

func NewHumanAddedEvent

func NewHumanAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,

	userName,
	firstName,
	lastName,
	nickName,
	displayName string,
	preferredLanguage language.Tag,
	gender domain.Gender,
	emailAddress string,
	userLoginMustBeDomain bool,
) *HumanAddedEvent

func (*HumanAddedEvent) AddAddressData

func (e *HumanAddedEvent) AddAddressData(
	country,
	locality,
	postalCode,
	region,
	streetAddress string,
)

func (*HumanAddedEvent) AddPasswordData

func (e *HumanAddedEvent) AddPasswordData(
	secret *crypto.CryptoValue,
	changeRequired bool,
)

func (*HumanAddedEvent) AddPhoneData

func (e *HumanAddedEvent) AddPhoneData(
	phoneNumber string,
)

func (*HumanAddedEvent) Data

func (e *HumanAddedEvent) Data() interface{}

func (*HumanAddedEvent) UniqueConstraints

func (e *HumanAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanAddressChangedEvent

type HumanAddressChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Country       *string `json:"country,omitempty"`
	Locality      *string `json:"locality,omitempty"`
	PostalCode    *string `json:"postalCode,omitempty"`
	Region        *string `json:"region,omitempty"`
	StreetAddress *string `json:"streetAddress,omitempty"`
}

func NewAddressChangedEvent

func NewAddressChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	changes []AddressChanges,
) (*HumanAddressChangedEvent, error)

func (*HumanAddressChangedEvent) Data

func (e *HumanAddressChangedEvent) Data() interface{}

func (*HumanAddressChangedEvent) UniqueConstraints

func (e *HumanAddressChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanAvatarAddedEvent

type HumanAvatarAddedEvent struct {
	asset.AddedEvent
}

func NewHumanAvatarAddedEvent

func NewHumanAvatarAddedEvent(ctx context.Context, aggregate *eventstore.Aggregate, storageKey string) *HumanAvatarAddedEvent

type HumanAvatarRemovedEvent

type HumanAvatarRemovedEvent struct {
	asset.RemovedEvent
}

func NewHumanAvatarRemovedEvent

func NewHumanAvatarRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, storageKey string) *HumanAvatarRemovedEvent

type HumanEmailChangedEvent

type HumanEmailChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	EmailAddress string `json:"email,omitempty"`
}

func NewHumanEmailChangedEvent

func NewHumanEmailChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, emailAddress string) *HumanEmailChangedEvent

func (*HumanEmailChangedEvent) Data

func (e *HumanEmailChangedEvent) Data() interface{}

func (*HumanEmailChangedEvent) UniqueConstraints

func (e *HumanEmailChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanEmailCodeAddedEvent

type HumanEmailCodeAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Code   *crypto.CryptoValue `json:"code,omitempty"`
	Expiry time.Duration       `json:"expiry,omitempty"`
}

func NewHumanEmailCodeAddedEvent

func NewHumanEmailCodeAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	code *crypto.CryptoValue,
	expiry time.Duration) *HumanEmailCodeAddedEvent

func (*HumanEmailCodeAddedEvent) Data

func (e *HumanEmailCodeAddedEvent) Data() interface{}

func (*HumanEmailCodeAddedEvent) UniqueConstraints

func (e *HumanEmailCodeAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanEmailCodeSentEvent

type HumanEmailCodeSentEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanEmailCodeSentEvent

func NewHumanEmailCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanEmailCodeSentEvent

func (*HumanEmailCodeSentEvent) Data

func (e *HumanEmailCodeSentEvent) Data() interface{}

func (*HumanEmailCodeSentEvent) UniqueConstraints

func (e *HumanEmailCodeSentEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanEmailVerificationFailedEvent

type HumanEmailVerificationFailedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanEmailVerificationFailedEvent

func NewHumanEmailVerificationFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanEmailVerificationFailedEvent

func (*HumanEmailVerificationFailedEvent) Data

func (e *HumanEmailVerificationFailedEvent) Data() interface{}

func (*HumanEmailVerificationFailedEvent) UniqueConstraints

type HumanEmailVerifiedEvent

type HumanEmailVerifiedEvent struct {
	eventstore.BaseEvent `json:"-"`

	IsEmailVerified bool `json:"-"`
}

func NewHumanEmailVerifiedEvent

func NewHumanEmailVerifiedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanEmailVerifiedEvent

func (*HumanEmailVerifiedEvent) Data

func (e *HumanEmailVerifiedEvent) Data() interface{}

func (*HumanEmailVerifiedEvent) UniqueConstraints

func (e *HumanEmailVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanInitialCodeAddedEvent

type HumanInitialCodeAddedEvent struct {
	eventstore.BaseEvent `json:"-"`
	Code                 *crypto.CryptoValue `json:"code,omitempty"`
	Expiry               time.Duration       `json:"expiry,omitempty"`
}

func NewHumanInitialCodeAddedEvent

func NewHumanInitialCodeAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	code *crypto.CryptoValue,
	expiry time.Duration,
) *HumanInitialCodeAddedEvent

func (*HumanInitialCodeAddedEvent) Data

func (e *HumanInitialCodeAddedEvent) Data() interface{}

func (*HumanInitialCodeAddedEvent) UniqueConstraints

type HumanInitialCodeSentEvent

type HumanInitialCodeSentEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanInitialCodeSentEvent

func NewHumanInitialCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanInitialCodeSentEvent

func (*HumanInitialCodeSentEvent) Data

func (e *HumanInitialCodeSentEvent) Data() interface{}

func (*HumanInitialCodeSentEvent) UniqueConstraints

type HumanInitializedCheckFailedEvent

type HumanInitializedCheckFailedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanInitializedCheckFailedEvent

func NewHumanInitializedCheckFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanInitializedCheckFailedEvent

func (*HumanInitializedCheckFailedEvent) Data

func (e *HumanInitializedCheckFailedEvent) Data() interface{}

func (*HumanInitializedCheckFailedEvent) UniqueConstraints

type HumanInitializedCheckSucceededEvent

type HumanInitializedCheckSucceededEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanInitializedCheckSucceededEvent

func NewHumanInitializedCheckSucceededEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanInitializedCheckSucceededEvent

func (*HumanInitializedCheckSucceededEvent) Data

func (e *HumanInitializedCheckSucceededEvent) Data() interface{}

func (*HumanInitializedCheckSucceededEvent) UniqueConstraints

type HumanMFAInitSkippedEvent

type HumanMFAInitSkippedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanMFAInitSkippedEvent

func NewHumanMFAInitSkippedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanMFAInitSkippedEvent

func (*HumanMFAInitSkippedEvent) Data

func (e *HumanMFAInitSkippedEvent) Data() interface{}

func (*HumanMFAInitSkippedEvent) UniqueConstraints

func (e *HumanMFAInitSkippedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanOTPAddedEvent

type HumanOTPAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Secret *crypto.CryptoValue `json:"otpSecret,omitempty"`
}

func NewHumanOTPAddedEvent

func NewHumanOTPAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	secret *crypto.CryptoValue,
) *HumanOTPAddedEvent

func (*HumanOTPAddedEvent) Data

func (e *HumanOTPAddedEvent) Data() interface{}

func (*HumanOTPAddedEvent) UniqueConstraints

func (e *HumanOTPAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanOTPCheckFailedEvent

type HumanOTPCheckFailedEvent struct {
	eventstore.BaseEvent `json:"-"`
	*AuthRequestInfo
}

func NewHumanOTPCheckFailedEvent

func NewHumanOTPCheckFailedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	info *AuthRequestInfo,
) *HumanOTPCheckFailedEvent

func (*HumanOTPCheckFailedEvent) Data

func (e *HumanOTPCheckFailedEvent) Data() interface{}

func (*HumanOTPCheckFailedEvent) UniqueConstraints

func (e *HumanOTPCheckFailedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanOTPCheckSucceededEvent

type HumanOTPCheckSucceededEvent struct {
	eventstore.BaseEvent `json:"-"`
	*AuthRequestInfo
}

func NewHumanOTPCheckSucceededEvent

func NewHumanOTPCheckSucceededEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	info *AuthRequestInfo,
) *HumanOTPCheckSucceededEvent

func (*HumanOTPCheckSucceededEvent) Data

func (e *HumanOTPCheckSucceededEvent) Data() interface{}

func (*HumanOTPCheckSucceededEvent) UniqueConstraints

type HumanOTPRemovedEvent

type HumanOTPRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanOTPRemovedEvent

func NewHumanOTPRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *HumanOTPRemovedEvent

func (*HumanOTPRemovedEvent) Data

func (e *HumanOTPRemovedEvent) Data() interface{}

func (*HumanOTPRemovedEvent) UniqueConstraints

func (e *HumanOTPRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanOTPVerifiedEvent

type HumanOTPVerifiedEvent struct {
	eventstore.BaseEvent `json:"-"`
	UserAgentID          string `json:"userAgentID,omitempty"`
}

func NewHumanOTPVerifiedEvent

func NewHumanOTPVerifiedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userAgentID string,
) *HumanOTPVerifiedEvent

func (*HumanOTPVerifiedEvent) Data

func (e *HumanOTPVerifiedEvent) Data() interface{}

func (*HumanOTPVerifiedEvent) UniqueConstraints

func (e *HumanOTPVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanPasswordChangedEvent

type HumanPasswordChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Secret         *crypto.CryptoValue `json:"secret,omitempty"`
	ChangeRequired bool                `json:"changeRequired"`
	UserAgentID    string              `json:"userAgentID,omitempty"`
}

func NewHumanPasswordChangedEvent

func NewHumanPasswordChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	secret *crypto.CryptoValue,
	changeRequired bool,
	userAgentID string,
) *HumanPasswordChangedEvent

func (*HumanPasswordChangedEvent) Data

func (e *HumanPasswordChangedEvent) Data() interface{}

func (*HumanPasswordChangedEvent) UniqueConstraints

type HumanPasswordCheckFailedEvent

type HumanPasswordCheckFailedEvent struct {
	eventstore.BaseEvent `json:"-"`
	*AuthRequestInfo
}

func NewHumanPasswordCheckFailedEvent

func NewHumanPasswordCheckFailedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	info *AuthRequestInfo,
) *HumanPasswordCheckFailedEvent

func (*HumanPasswordCheckFailedEvent) Data

func (e *HumanPasswordCheckFailedEvent) Data() interface{}

func (*HumanPasswordCheckFailedEvent) UniqueConstraints

type HumanPasswordCheckSucceededEvent

type HumanPasswordCheckSucceededEvent struct {
	eventstore.BaseEvent `json:"-"`
	*AuthRequestInfo
}

func NewHumanPasswordCheckSucceededEvent

func NewHumanPasswordCheckSucceededEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	info *AuthRequestInfo,
) *HumanPasswordCheckSucceededEvent

func (*HumanPasswordCheckSucceededEvent) Data

func (e *HumanPasswordCheckSucceededEvent) Data() interface{}

func (*HumanPasswordCheckSucceededEvent) UniqueConstraints

type HumanPasswordCodeAddedEvent

type HumanPasswordCodeAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Code             *crypto.CryptoValue     `json:"code,omitempty"`
	Expiry           time.Duration           `json:"expiry,omitempty"`
	NotificationType domain.NotificationType `json:"notificationType,omitempty"`
}

func NewHumanPasswordCodeAddedEvent

func NewHumanPasswordCodeAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	code *crypto.CryptoValue,
	expiry time.Duration,
	notificationType domain.NotificationType,
) *HumanPasswordCodeAddedEvent

func (*HumanPasswordCodeAddedEvent) Data

func (e *HumanPasswordCodeAddedEvent) Data() interface{}

func (*HumanPasswordCodeAddedEvent) UniqueConstraints

type HumanPasswordCodeSentEvent

type HumanPasswordCodeSentEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanPasswordCodeSentEvent

func NewHumanPasswordCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPasswordCodeSentEvent

func (*HumanPasswordCodeSentEvent) Data

func (e *HumanPasswordCodeSentEvent) Data() interface{}

func (*HumanPasswordCodeSentEvent) UniqueConstraints

type HumanPasswordlessAddedEvent

type HumanPasswordlessAddedEvent struct {
	HumanWebAuthNAddedEvent
}

func NewHumanPasswordlessAddedEvent

func NewHumanPasswordlessAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	webAuthNTokenID,
	challenge string,
) *HumanPasswordlessAddedEvent

type HumanPasswordlessBeginLoginEvent

type HumanPasswordlessBeginLoginEvent struct {
	HumanWebAuthNBeginLoginEvent
}

func NewHumanPasswordlessBeginLoginEvent

func NewHumanPasswordlessBeginLoginEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	challenge string,
	allowedCredentialIDs [][]byte,
	userVerification domain.UserVerificationRequirement,
	info *AuthRequestInfo,
) *HumanPasswordlessBeginLoginEvent

type HumanPasswordlessCheckFailedEvent

type HumanPasswordlessCheckFailedEvent struct {
	HumanWebAuthNCheckFailedEvent
}

func NewHumanPasswordlessCheckFailedEvent

func NewHumanPasswordlessCheckFailedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	info *AuthRequestInfo) *HumanPasswordlessCheckFailedEvent

type HumanPasswordlessCheckSucceededEvent

type HumanPasswordlessCheckSucceededEvent struct {
	HumanWebAuthNCheckSucceededEvent
}

func NewHumanPasswordlessCheckSucceededEvent

func NewHumanPasswordlessCheckSucceededEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	info *AuthRequestInfo) *HumanPasswordlessCheckSucceededEvent

type HumanPasswordlessInitCodeAddedEvent

type HumanPasswordlessInitCodeAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	ID     string              `json:"id"`
	Code   *crypto.CryptoValue `json:"code"`
	Expiry time.Duration       `json:"expiry"`
}

func NewHumanPasswordlessInitCodeAddedEvent

func NewHumanPasswordlessInitCodeAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	id string,
	code *crypto.CryptoValue,
	expiry time.Duration,
) *HumanPasswordlessInitCodeAddedEvent

func (*HumanPasswordlessInitCodeAddedEvent) Data

func (e *HumanPasswordlessInitCodeAddedEvent) Data() interface{}

func (*HumanPasswordlessInitCodeAddedEvent) UniqueConstraints

type HumanPasswordlessInitCodeCheckFailedEvent

type HumanPasswordlessInitCodeCheckFailedEvent struct {
	eventstore.BaseEvent `json:"-"`

	ID string `json:"id"`
}

func NewHumanPasswordlessInitCodeCheckFailedEvent

func NewHumanPasswordlessInitCodeCheckFailedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	id string,
) *HumanPasswordlessInitCodeCheckFailedEvent

func (*HumanPasswordlessInitCodeCheckFailedEvent) Data

func (e *HumanPasswordlessInitCodeCheckFailedEvent) Data() interface{}

func (*HumanPasswordlessInitCodeCheckFailedEvent) UniqueConstraints

type HumanPasswordlessInitCodeCheckSucceededEvent

type HumanPasswordlessInitCodeCheckSucceededEvent struct {
	eventstore.BaseEvent `json:"-"`

	ID string `json:"id"`
}

func NewHumanPasswordlessInitCodeCheckSucceededEvent

func NewHumanPasswordlessInitCodeCheckSucceededEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	id string,
) *HumanPasswordlessInitCodeCheckSucceededEvent

func (*HumanPasswordlessInitCodeCheckSucceededEvent) Data

func (e *HumanPasswordlessInitCodeCheckSucceededEvent) Data() interface{}

func (*HumanPasswordlessInitCodeCheckSucceededEvent) UniqueConstraints

type HumanPasswordlessInitCodeRequestedEvent

type HumanPasswordlessInitCodeRequestedEvent struct {
	eventstore.BaseEvent `json:"-"`

	ID     string              `json:"id"`
	Code   *crypto.CryptoValue `json:"code"`
	Expiry time.Duration       `json:"expiry"`
}

func NewHumanPasswordlessInitCodeRequestedEvent

func NewHumanPasswordlessInitCodeRequestedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	id string,
	code *crypto.CryptoValue,
	expiry time.Duration,
) *HumanPasswordlessInitCodeRequestedEvent

func (*HumanPasswordlessInitCodeRequestedEvent) Data

func (e *HumanPasswordlessInitCodeRequestedEvent) Data() interface{}

func (*HumanPasswordlessInitCodeRequestedEvent) UniqueConstraints

type HumanPasswordlessInitCodeSentEvent

type HumanPasswordlessInitCodeSentEvent struct {
	eventstore.BaseEvent `json:"-"`

	ID string `json:"id"`
}

func NewHumanPasswordlessInitCodeSentEvent

func NewHumanPasswordlessInitCodeSentEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	id string,
) *HumanPasswordlessInitCodeSentEvent

func (*HumanPasswordlessInitCodeSentEvent) Data

func (e *HumanPasswordlessInitCodeSentEvent) Data() interface{}

func (*HumanPasswordlessInitCodeSentEvent) UniqueConstraints

type HumanPasswordlessRemovedEvent

type HumanPasswordlessRemovedEvent struct {
	HumanWebAuthNRemovedEvent
}

func NewHumanPasswordlessRemovedEvent

func NewHumanPasswordlessRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	webAuthNTokenID string,
) *HumanPasswordlessRemovedEvent

type HumanPasswordlessSignCountChangedEvent

type HumanPasswordlessSignCountChangedEvent struct {
	HumanWebAuthNSignCountChangedEvent
}

func NewHumanPasswordlessSignCountChangedEvent

func NewHumanPasswordlessSignCountChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	webAuthNTokenID string,
	signCount uint32,
) *HumanPasswordlessSignCountChangedEvent

type HumanPasswordlessVerifiedEvent

type HumanPasswordlessVerifiedEvent struct {
	HumanWebAuthNVerifiedEvent
}

func NewHumanPasswordlessVerifiedEvent

func NewHumanPasswordlessVerifiedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	webAuthNTokenID,
	webAuthNTokenName,
	attestationType string,
	keyID,
	publicKey,
	aaguid []byte,
	signCount uint32,
	userAgentID string,
) *HumanPasswordlessVerifiedEvent

type HumanPhoneChangedEvent

type HumanPhoneChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	PhoneNumber string `json:"phone,omitempty"`
}

func NewHumanPhoneChangedEvent

func NewHumanPhoneChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, phone string) *HumanPhoneChangedEvent

func (*HumanPhoneChangedEvent) Data

func (e *HumanPhoneChangedEvent) Data() interface{}

func (*HumanPhoneChangedEvent) UniqueConstraints

func (e *HumanPhoneChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanPhoneCodeAddedEvent

type HumanPhoneCodeAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Code   *crypto.CryptoValue `json:"code,omitempty"`
	Expiry time.Duration       `json:"expiry,omitempty"`
}

func NewHumanPhoneCodeAddedEvent

func NewHumanPhoneCodeAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	code *crypto.CryptoValue,
	expiry time.Duration,
) *HumanPhoneCodeAddedEvent

func (*HumanPhoneCodeAddedEvent) Data

func (e *HumanPhoneCodeAddedEvent) Data() interface{}

func (*HumanPhoneCodeAddedEvent) UniqueConstraints

func (e *HumanPhoneCodeAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanPhoneCodeSentEvent

type HumanPhoneCodeSentEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanPhoneCodeSentEvent

func NewHumanPhoneCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneCodeSentEvent

func (*HumanPhoneCodeSentEvent) Data

func (e *HumanPhoneCodeSentEvent) Data() interface{}

func (*HumanPhoneCodeSentEvent) UniqueConstraints

func (e *HumanPhoneCodeSentEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanPhoneRemovedEvent

type HumanPhoneRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanPhoneRemovedEvent

func NewHumanPhoneRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneRemovedEvent

func (*HumanPhoneRemovedEvent) Data

func (e *HumanPhoneRemovedEvent) Data() interface{}

func (*HumanPhoneRemovedEvent) UniqueConstraints

func (e *HumanPhoneRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanPhoneVerificationFailedEvent

type HumanPhoneVerificationFailedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewHumanPhoneVerificationFailedEvent

func NewHumanPhoneVerificationFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneVerificationFailedEvent

func (*HumanPhoneVerificationFailedEvent) Data

func (e *HumanPhoneVerificationFailedEvent) Data() interface{}

func (*HumanPhoneVerificationFailedEvent) UniqueConstraints

type HumanPhoneVerifiedEvent

type HumanPhoneVerifiedEvent struct {
	eventstore.BaseEvent `json:"-"`

	IsPhoneVerified bool `json:"-"`
}

func NewHumanPhoneVerifiedEvent

func NewHumanPhoneVerifiedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneVerifiedEvent

func (*HumanPhoneVerifiedEvent) Data

func (e *HumanPhoneVerifiedEvent) Data() interface{}

func (*HumanPhoneVerifiedEvent) UniqueConstraints

func (e *HumanPhoneVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanProfileChangedEvent

type HumanProfileChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	FirstName         string         `json:"firstName,omitempty"`
	LastName          string         `json:"lastName,omitempty"`
	NickName          *string        `json:"nickName,omitempty"`
	DisplayName       *string        `json:"displayName,omitempty"`
	PreferredLanguage *language.Tag  `json:"preferredLanguage,omitempty"`
	Gender            *domain.Gender `json:"gender,omitempty"`
}

func NewHumanProfileChangedEvent

func NewHumanProfileChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	changes []ProfileChanges,
) (*HumanProfileChangedEvent, error)

func (*HumanProfileChangedEvent) Data

func (e *HumanProfileChangedEvent) Data() interface{}

func (*HumanProfileChangedEvent) UniqueConstraints

func (e *HumanProfileChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanRefreshTokenAddedEvent

type HumanRefreshTokenAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TokenID               string        `json:"tokenId"`
	ClientID              string        `json:"clientId"`
	UserAgentID           string        `json:"userAgentId"`
	Audience              []string      `json:"audience"`
	Scopes                []string      `json:"scopes"`
	AuthMethodsReferences []string      `json:"authMethodReferences"`
	AuthTime              time.Time     `json:"authTime"`
	IdleExpiration        time.Duration `json:"idleExpiration"`
	Expiration            time.Duration `json:"expiration"`
	PreferredLanguage     string        `json:"preferredLanguage"`
}

func NewHumanRefreshTokenAddedEvent

func NewHumanRefreshTokenAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tokenID,
	clientID,
	userAgentID,
	preferredLanguage string,
	audience,
	scopes,
	authMethodsReferences []string,
	authTime time.Time,
	idleExpiration,
	expiration time.Duration,
) *HumanRefreshTokenAddedEvent

func (*HumanRefreshTokenAddedEvent) Assets

func (*HumanRefreshTokenAddedEvent) Data

func (e *HumanRefreshTokenAddedEvent) Data() interface{}

func (*HumanRefreshTokenAddedEvent) UniqueConstraints

type HumanRefreshTokenRemovedEvent

type HumanRefreshTokenRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TokenID string `json:"tokenId"`
}

func NewHumanRefreshTokenRemovedEvent

func NewHumanRefreshTokenRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tokenID string,
) *HumanRefreshTokenRemovedEvent

func (*HumanRefreshTokenRemovedEvent) Assets

func (*HumanRefreshTokenRemovedEvent) Data

func (e *HumanRefreshTokenRemovedEvent) Data() interface{}

func (*HumanRefreshTokenRemovedEvent) UniqueConstraints

type HumanRefreshTokenRenewedEvent

type HumanRefreshTokenRenewedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TokenID        string        `json:"tokenId"`
	RefreshToken   string        `json:"refreshToken"`
	IdleExpiration time.Duration `json:"idleExpiration"`
}

func NewHumanRefreshTokenRenewedEvent

func NewHumanRefreshTokenRenewedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tokenID,
	refreshToken string,
	idleExpiration time.Duration,
) *HumanRefreshTokenRenewedEvent

func (*HumanRefreshTokenRenewedEvent) Assets

func (*HumanRefreshTokenRenewedEvent) Data

func (e *HumanRefreshTokenRenewedEvent) Data() interface{}

func (*HumanRefreshTokenRenewedEvent) UniqueConstraints

type HumanRegisteredEvent

type HumanRegisteredEvent struct {
	eventstore.BaseEvent `json:"-"`

	UserName string `json:"userName"`

	FirstName         string        `json:"firstName,omitempty"`
	LastName          string        `json:"lastName,omitempty"`
	NickName          string        `json:"nickName,omitempty"`
	DisplayName       string        `json:"displayName,omitempty"`
	PreferredLanguage language.Tag  `json:"preferredLanguage,omitempty"`
	Gender            domain.Gender `json:"gender,omitempty"`

	EmailAddress string `json:"email,omitempty"`

	PhoneNumber string `json:"phone,omitempty"`

	Country       string `json:"country,omitempty"`
	Locality      string `json:"locality,omitempty"`
	PostalCode    string `json:"postalCode,omitempty"`
	Region        string `json:"region,omitempty"`
	StreetAddress string `json:"streetAddress,omitempty"`

	Secret         *crypto.CryptoValue `json:"secret,omitempty"`
	ChangeRequired bool                `json:"changeRequired,omitempty"`
	// contains filtered or unexported fields
}

func NewHumanRegisteredEvent

func NewHumanRegisteredEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,

	userName,
	firstName,
	lastName,
	nickName,
	displayName string,
	preferredLanguage language.Tag,
	gender domain.Gender,
	emailAddress string,
	userLoginMustBeDomain bool,
) *HumanRegisteredEvent

func (*HumanRegisteredEvent) AddAddressData

func (e *HumanRegisteredEvent) AddAddressData(
	country,
	locality,
	postalCode,
	region,
	streetAddress string,
)

func (*HumanRegisteredEvent) AddPasswordData

func (e *HumanRegisteredEvent) AddPasswordData(
	secret *crypto.CryptoValue,
	changeRequired bool,
)

func (*HumanRegisteredEvent) AddPhoneData

func (e *HumanRegisteredEvent) AddPhoneData(
	phoneNumber string,
)

func (*HumanRegisteredEvent) Data

func (e *HumanRegisteredEvent) Data() interface{}

func (*HumanRegisteredEvent) UniqueConstraints

func (e *HumanRegisteredEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanSignedOutEvent

type HumanSignedOutEvent struct {
	eventstore.BaseEvent `json:"-"`

	UserAgentID string `json:"userAgentID"`
}

func NewHumanSignedOutEvent

func NewHumanSignedOutEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userAgentID string,
) *HumanSignedOutEvent

func (*HumanSignedOutEvent) Data

func (e *HumanSignedOutEvent) Data() interface{}

func (*HumanSignedOutEvent) UniqueConstraints

func (e *HumanSignedOutEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanU2FAddedEvent

type HumanU2FAddedEvent struct {
	HumanWebAuthNAddedEvent
}

func NewHumanU2FAddedEvent

func NewHumanU2FAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	webAuthNTokenID,
	challenge string,
) *HumanU2FAddedEvent

type HumanU2FBeginLoginEvent

type HumanU2FBeginLoginEvent struct {
	HumanWebAuthNBeginLoginEvent
}

func NewHumanU2FBeginLoginEvent

func NewHumanU2FBeginLoginEvent(ctx context.Context, aggregate *eventstore.Aggregate, challenge string, allowedCredentialIDs [][]byte, userVerification domain.UserVerificationRequirement, info *AuthRequestInfo) *HumanU2FBeginLoginEvent

type HumanU2FCheckFailedEvent

type HumanU2FCheckFailedEvent struct {
	HumanWebAuthNCheckFailedEvent
}

func NewHumanU2FCheckFailedEvent

func NewHumanU2FCheckFailedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	info *AuthRequestInfo) *HumanU2FCheckFailedEvent

type HumanU2FCheckSucceededEvent

type HumanU2FCheckSucceededEvent struct {
	HumanWebAuthNCheckSucceededEvent
}

func NewHumanU2FCheckSucceededEvent

func NewHumanU2FCheckSucceededEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	info *AuthRequestInfo) *HumanU2FCheckSucceededEvent

type HumanU2FRemovedEvent

type HumanU2FRemovedEvent struct {
	HumanWebAuthNRemovedEvent
}

func NewHumanU2FRemovedEvent

func NewHumanU2FRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	webAuthNTokenID string,
) *HumanU2FRemovedEvent

type HumanU2FSignCountChangedEvent

type HumanU2FSignCountChangedEvent struct {
	HumanWebAuthNSignCountChangedEvent
}

func NewHumanU2FSignCountChangedEvent

func NewHumanU2FSignCountChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	webAuthNTokenID string,
	signCount uint32,
) *HumanU2FSignCountChangedEvent

type HumanU2FVerifiedEvent

type HumanU2FVerifiedEvent struct {
	HumanWebAuthNVerifiedEvent
}

func NewHumanU2FVerifiedEvent

func NewHumanU2FVerifiedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	webAuthNTokenID,
	webAuthNTokenName,
	attestationType string,
	keyID,
	publicKey,
	aaguid []byte,
	signCount uint32,
	userAgentID string,
) *HumanU2FVerifiedEvent

type HumanWebAuthNAddedEvent

type HumanWebAuthNAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	WebAuthNTokenID string `json:"webAuthNTokenId"`
	Challenge       string `json:"challenge"`
}

func NewHumanWebAuthNAddedEvent

func NewHumanWebAuthNAddedEvent(
	base *eventstore.BaseEvent,
	webAuthNTokenID,
	challenge string,
) *HumanWebAuthNAddedEvent

func (*HumanWebAuthNAddedEvent) Data

func (e *HumanWebAuthNAddedEvent) Data() interface{}

func (*HumanWebAuthNAddedEvent) UniqueConstraints

func (e *HumanWebAuthNAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type HumanWebAuthNBeginLoginEvent

type HumanWebAuthNBeginLoginEvent struct {
	eventstore.BaseEvent `json:"-"`

	Challenge            string                             `json:"challenge"`
	AllowedCredentialIDs [][]byte                           `json:"allowedCredentialIDs"`
	UserVerification     domain.UserVerificationRequirement `json:"userVerification"`
	*AuthRequestInfo
}

func NewHumanWebAuthNBeginLoginEvent

func NewHumanWebAuthNBeginLoginEvent(base *eventstore.BaseEvent, challenge string, allowedCredentialIDs [][]byte, userVerification domain.UserVerificationRequirement, info *AuthRequestInfo) *HumanWebAuthNBeginLoginEvent

func (*HumanWebAuthNBeginLoginEvent) Data

func (e *HumanWebAuthNBeginLoginEvent) Data() interface{}

func (*HumanWebAuthNBeginLoginEvent) UniqueConstraints

type HumanWebAuthNCheckFailedEvent

type HumanWebAuthNCheckFailedEvent struct {
	eventstore.BaseEvent `json:"-"`
	*AuthRequestInfo
}

func NewHumanWebAuthNCheckFailedEvent

func NewHumanWebAuthNCheckFailedEvent(
	base *eventstore.BaseEvent,
	info *AuthRequestInfo) *HumanWebAuthNCheckFailedEvent

func (*HumanWebAuthNCheckFailedEvent) Data

func (e *HumanWebAuthNCheckFailedEvent) Data() interface{}

func (*HumanWebAuthNCheckFailedEvent) UniqueConstraints

type HumanWebAuthNCheckSucceededEvent

type HumanWebAuthNCheckSucceededEvent struct {
	eventstore.BaseEvent `json:"-"`
	*AuthRequestInfo
}

func NewHumanWebAuthNCheckSucceededEvent

func NewHumanWebAuthNCheckSucceededEvent(
	base *eventstore.BaseEvent,
	info *AuthRequestInfo) *HumanWebAuthNCheckSucceededEvent

func (*HumanWebAuthNCheckSucceededEvent) Data

func (e *HumanWebAuthNCheckSucceededEvent) Data() interface{}

func (*HumanWebAuthNCheckSucceededEvent) UniqueConstraints

type HumanWebAuthNRemovedEvent

type HumanWebAuthNRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	WebAuthNTokenID string          `json:"webAuthNTokenId"`
	State           domain.MFAState `json:"-"`
}

func NewHumanWebAuthNRemovedEvent

func NewHumanWebAuthNRemovedEvent(
	base *eventstore.BaseEvent,
	webAuthNTokenID string,
) *HumanWebAuthNRemovedEvent

func (*HumanWebAuthNRemovedEvent) Data

func (e *HumanWebAuthNRemovedEvent) Data() interface{}

func (*HumanWebAuthNRemovedEvent) UniqueConstraints

type HumanWebAuthNSignCountChangedEvent

type HumanWebAuthNSignCountChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	WebAuthNTokenID string `json:"webAuthNTokenId"`
	SignCount       uint32 `json:"signCount"`
}

func NewHumanWebAuthNSignCountChangedEvent

func NewHumanWebAuthNSignCountChangedEvent(
	base *eventstore.BaseEvent,
	webAuthNTokenID string,
	signCount uint32,
) *HumanWebAuthNSignCountChangedEvent

func (*HumanWebAuthNSignCountChangedEvent) Data

func (e *HumanWebAuthNSignCountChangedEvent) Data() interface{}

func (*HumanWebAuthNSignCountChangedEvent) UniqueConstraints

type HumanWebAuthNVerifiedEvent

type HumanWebAuthNVerifiedEvent struct {
	eventstore.BaseEvent `json:"-"`

	WebAuthNTokenID   string `json:"webAuthNTokenId"`
	KeyID             []byte `json:"keyId"`
	PublicKey         []byte `json:"publicKey"`
	AttestationType   string `json:"attestationType"`
	AAGUID            []byte `json:"aaguid"`
	SignCount         uint32 `json:"signCount"`
	WebAuthNTokenName string `json:"webAuthNTokenName"`
	UserAgentID       string `json:"userAgentID,omitempty"`
}

func NewHumanWebAuthNVerifiedEvent

func NewHumanWebAuthNVerifiedEvent(
	base *eventstore.BaseEvent,
	webAuthNTokenID,
	webAuthNTokenName,
	attestationType string,
	keyID,
	publicKey,
	aaguid []byte,
	signCount uint32,
	userAgentID string,
) *HumanWebAuthNVerifiedEvent

func (*HumanWebAuthNVerifiedEvent) Data

func (e *HumanWebAuthNVerifiedEvent) Data() interface{}

func (*HumanWebAuthNVerifiedEvent) UniqueConstraints

type MachineAddedEvent

type MachineAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	UserName string `json:"userName"`

	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	// contains filtered or unexported fields
}

func NewMachineAddedEvent

func NewMachineAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userName,
	name,
	description string,
	userLoginMustBeDomain bool,
) *MachineAddedEvent

func (*MachineAddedEvent) Data

func (e *MachineAddedEvent) Data() interface{}

func (*MachineAddedEvent) UniqueConstraints

func (e *MachineAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MachineChangedEvent

type MachineChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

func NewMachineChangedEvent

func NewMachineChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	changes []MachineChanges,
) (*MachineChangedEvent, error)

func (*MachineChangedEvent) Data

func (e *MachineChangedEvent) Data() interface{}

func (*MachineChangedEvent) UniqueConstraints

func (e *MachineChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MachineChanges

type MachineChanges func(event *MachineChangedEvent)

type MachineKeyAddedEvent

type MachineKeyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	KeyID          string              `json:"keyId,omitempty"`
	KeyType        domain.AuthNKeyType `json:"type,omitempty"`
	ExpirationDate time.Time           `json:"expirationDate,omitempty"`
	PublicKey      []byte              `json:"publicKey,omitempty"`
}

func NewMachineKeyAddedEvent

func NewMachineKeyAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	keyID string,
	keyType domain.AuthNKeyType,
	expirationDate time.Time,
	publicKey []byte,
) *MachineKeyAddedEvent

func (*MachineKeyAddedEvent) Data

func (e *MachineKeyAddedEvent) Data() interface{}

func (*MachineKeyAddedEvent) UniqueConstraints

func (e *MachineKeyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MachineKeyRemovedEvent

type MachineKeyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	KeyID string `json:"keyId,omitempty"`
}

func NewMachineKeyRemovedEvent

func NewMachineKeyRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	keyID string,
) *MachineKeyRemovedEvent

func (*MachineKeyRemovedEvent) Data

func (e *MachineKeyRemovedEvent) Data() interface{}

func (*MachineKeyRemovedEvent) UniqueConstraints

func (e *MachineKeyRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MetadataRemovedAllEvent

type MetadataRemovedAllEvent struct {
	metadata.RemovedAllEvent
}

func NewMetadataRemovedAllEvent

func NewMetadataRemovedAllEvent(ctx context.Context, aggregate *eventstore.Aggregate) *MetadataRemovedAllEvent

type MetadataRemovedEvent

type MetadataRemovedEvent struct {
	metadata.RemovedEvent
}

func NewMetadataRemovedEvent

func NewMetadataRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, key string) *MetadataRemovedEvent

type MetadataSetEvent

type MetadataSetEvent struct {
	metadata.SetEvent
}

func NewMetadataSetEvent

func NewMetadataSetEvent(ctx context.Context, aggregate *eventstore.Aggregate, key string, value []byte) *MetadataSetEvent

type PersonalAccessTokenAddedEvent

type PersonalAccessTokenAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TokenID    string    `json:"tokenId"`
	Expiration time.Time `json:"expiration"`
	Scopes     []string  `json:"scopes"`
}

func NewPersonalAccessTokenAddedEvent

func NewPersonalAccessTokenAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tokenID string,
	expiration time.Time,
	scopes []string,
) *PersonalAccessTokenAddedEvent

func (*PersonalAccessTokenAddedEvent) Data

func (e *PersonalAccessTokenAddedEvent) Data() interface{}

func (*PersonalAccessTokenAddedEvent) UniqueConstraints

type PersonalAccessTokenRemovedEvent

type PersonalAccessTokenRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TokenID string `json:"tokenId"`
}

func NewPersonalAccessTokenRemovedEvent

func NewPersonalAccessTokenRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tokenID string,
) *PersonalAccessTokenRemovedEvent

func (*PersonalAccessTokenRemovedEvent) Data

func (e *PersonalAccessTokenRemovedEvent) Data() interface{}

func (*PersonalAccessTokenRemovedEvent) UniqueConstraints

type ProfileChanges

type ProfileChanges func(event *HumanProfileChangedEvent)

type UserDeactivatedEvent

type UserDeactivatedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewUserDeactivatedEvent

func NewUserDeactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserDeactivatedEvent

func (*UserDeactivatedEvent) Data

func (e *UserDeactivatedEvent) Data() interface{}

func (*UserDeactivatedEvent) UniqueConstraints

func (e *UserDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type UserIDPCheckSucceededEvent

type UserIDPCheckSucceededEvent struct {
	eventstore.BaseEvent `json:"-"`
	*AuthRequestInfo
}

func NewUserIDPCheckSucceededEvent

func NewUserIDPCheckSucceededEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	info *AuthRequestInfo) *UserIDPCheckSucceededEvent

func (*UserIDPCheckSucceededEvent) Data

func (e *UserIDPCheckSucceededEvent) Data() interface{}

func (*UserIDPCheckSucceededEvent) UniqueConstraints

type UserIDPLinkAddedEvent

type UserIDPLinkAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	IDPConfigID    string `json:"idpConfigId,omitempty"`
	ExternalUserID string `json:"userId,omitempty"`
	DisplayName    string `json:"displayName,omitempty"`
}

func NewUserIDPLinkAddedEvent

func NewUserIDPLinkAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID,
	displayName,
	externalUserID string,
) *UserIDPLinkAddedEvent

func (*UserIDPLinkAddedEvent) Data

func (e *UserIDPLinkAddedEvent) Data() interface{}

func (*UserIDPLinkAddedEvent) UniqueConstraints

func (e *UserIDPLinkAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type UserIDPLinkCascadeRemovedEvent

type UserIDPLinkCascadeRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	IDPConfigID    string `json:"idpConfigId"`
	ExternalUserID string `json:"userId,omitempty"`
}

func NewUserIDPLinkCascadeRemovedEvent

func NewUserIDPLinkCascadeRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID,
	externalUserID string,
) *UserIDPLinkCascadeRemovedEvent

func (*UserIDPLinkCascadeRemovedEvent) Data

func (e *UserIDPLinkCascadeRemovedEvent) Data() interface{}

func (*UserIDPLinkCascadeRemovedEvent) UniqueConstraints

type UserIDPLinkRemovedEvent

type UserIDPLinkRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	IDPConfigID    string `json:"idpConfigId"`
	ExternalUserID string `json:"userId,omitempty"`
}

func NewUserIDPLinkRemovedEvent

func NewUserIDPLinkRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID,
	externalUserID string,
) *UserIDPLinkRemovedEvent

func (*UserIDPLinkRemovedEvent) Data

func (e *UserIDPLinkRemovedEvent) Data() interface{}

func (*UserIDPLinkRemovedEvent) UniqueConstraints

func (e *UserIDPLinkRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type UserLockedEvent

type UserLockedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewUserLockedEvent

func NewUserLockedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserLockedEvent

func (*UserLockedEvent) Data

func (e *UserLockedEvent) Data() interface{}

func (*UserLockedEvent) UniqueConstraints

func (e *UserLockedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type UserReactivatedEvent

type UserReactivatedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewUserReactivatedEvent

func NewUserReactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserReactivatedEvent

func (*UserReactivatedEvent) Data

func (e *UserReactivatedEvent) Data() interface{}

func (*UserReactivatedEvent) UniqueConstraints

func (e *UserReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type UserRemovedEvent

type UserRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
	// contains filtered or unexported fields
}

func NewUserRemovedEvent

func NewUserRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userName string,
	externalIDPs []*domain.UserIDPLink,
	userLoginMustBeDomain bool,
) *UserRemovedEvent

func (*UserRemovedEvent) Data

func (e *UserRemovedEvent) Data() interface{}

func (*UserRemovedEvent) UniqueConstraints

func (e *UserRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type UserTokenAddedEvent

type UserTokenAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TokenID           string    `json:"tokenId"`
	ApplicationID     string    `json:"applicationId"`
	UserAgentID       string    `json:"userAgentId"`
	RefreshTokenID    string    `json:"refreshTokenID,omitempty"`
	Audience          []string  `json:"audience"`
	Scopes            []string  `json:"scopes"`
	Expiration        time.Time `json:"expiration"`
	PreferredLanguage string    `json:"preferredLanguage"`
}

func NewUserTokenAddedEvent

func NewUserTokenAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tokenID,
	applicationID,
	userAgentID,
	preferredLanguage,
	refreshTokenID string,
	audience,
	scopes []string,
	expiration time.Time,
) *UserTokenAddedEvent

func (*UserTokenAddedEvent) Data

func (e *UserTokenAddedEvent) Data() interface{}

func (*UserTokenAddedEvent) UniqueConstraints

func (e *UserTokenAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type UserTokenRemovedEvent

type UserTokenRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TokenID string `json:"tokenId"`
}

func NewUserTokenRemovedEvent

func NewUserTokenRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tokenID string,
) *UserTokenRemovedEvent

func (*UserTokenRemovedEvent) Data

func (e *UserTokenRemovedEvent) Data() interface{}

func (*UserTokenRemovedEvent) UniqueConstraints

func (e *UserTokenRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type UserUnlockedEvent

type UserUnlockedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewUserUnlockedEvent

func NewUserUnlockedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserUnlockedEvent

func (*UserUnlockedEvent) Data

func (e *UserUnlockedEvent) Data() interface{}

func (*UserUnlockedEvent) UniqueConstraints

func (e *UserUnlockedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type UsernameChangedEvent

type UsernameChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	UserName string `json:"userName"`
	// contains filtered or unexported fields
}

func NewUsernameChangedEvent

func NewUsernameChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	oldUserName,
	newUserName string,
	userLoginMustBeDomain bool,
) *UsernameChangedEvent

func (*UsernameChangedEvent) Data

func (e *UsernameChangedEvent) Data() interface{}

func (*UsernameChangedEvent) UniqueConstraints

func (e *UsernameChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

Jump to

Keyboard shortcuts

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