events

package
v0.0.0-...-d8ec61f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserPhoneNumberLinkV1 = "V1_USER_PHONE_NUMBER_LINK"
	UserJobRoleLinkV1     = "V1_USER_JOB_ROLE_LINK"
	UserAddRoleV1         = "V1_USER_ADD_ROLE"
	UserRemoveRoleV1      = "V1_USER_REMOVE_ROLE"
)

Variables

This section is empty.

Functions

func NewUserAddRoleEvent

func NewUserAddRoleEvent(aggregate eventstore.Aggregate, role string, at time.Time) (eventstore.Event, error)

func NewUserLinkJobRoleEvent

func NewUserLinkJobRoleEvent(aggregate eventstore.Aggregate, tenant, jobRoleId string, updatedAt time.Time) (eventstore.Event, error)

func NewUserLinkPhoneNumberEvent

func NewUserLinkPhoneNumberEvent(aggregate eventstore.Aggregate, tenant, phoneNumberId, label string, primary bool, updatedAt time.Time) (eventstore.Event, error)

func NewUserRemoveRoleEvent

func NewUserRemoveRoleEvent(aggregate eventstore.Aggregate, role string, at time.Time) (eventstore.Event, error)

Types

type UserAddRoleEvent

type UserAddRoleEvent struct {
	Tenant string    `json:"tenant" validate:"required"`
	Role   string    `json:"role" validate:"required"`
	At     time.Time `json:"at"`
}

type UserLinkJobRoleEvent

type UserLinkJobRoleEvent struct {
	Tenant    string    `json:"tenant" validate:"required"`
	UpdatedAt time.Time `json:"updatedAt"`
	JobRoleId string    `json:"jobRoleId" validate:"required"`
}

type UserLinkPhoneNumberEvent

type UserLinkPhoneNumberEvent struct {
	Tenant        string    `json:"tenant" validate:"required"`
	UpdatedAt     time.Time `json:"updatedAt"`
	PhoneNumberId string    `json:"phoneNumberId" validate:"required"`
	Label         string    `json:"label"`
	Primary       bool      `json:"primary"`
}

type UserRemoveRoleEvent

type UserRemoveRoleEvent struct {
	Tenant string    `json:"tenant" validate:"required"`
	Role   string    `json:"role"`
	At     time.Time `json:"at"`
}

Jump to

Keyboard shortcuts

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