Documentation ¶
Index ¶
- Constants
- func GetContactObjectID(aggregateID, tenant string) string
- type ContactAggregate
- func (a *ContactAggregate) HandleCommand(ctx context.Context, cmd eventstore.Command) error
- func (a *ContactAggregate) HandleRequest(ctx context.Context, request any) (any, error)
- func (a *ContactAggregate) SetEmailNonPrimary(ctx context.Context, emailId, loggedInUserId, appSource string) error
- func (a *ContactAggregate) SetPhoneNumberNonPrimary(ctx context.Context, phoneNumberId, loggedInUserId, appSource string) error
- func (a *ContactAggregate) When(evt eventstore.Event) error
Constants ¶
View Source
const (
ContactAggregateType eventstore.AggregateType = "contact"
)
Variables ¶
This section is empty.
Functions ¶
func GetContactObjectID ¶
Types ¶
type ContactAggregate ¶
type ContactAggregate struct { *aggregate.CommonTenantIdAggregate Contact *models.Contact }
func LoadContactAggregate ¶
func LoadContactAggregate(ctx context.Context, eventStore eventstore.AggregateStore, tenant, objectID string, options eventstore.LoadAggregateOptions) (*ContactAggregate, error)
func NewContactAggregateWithTenantAndID ¶
func NewContactAggregateWithTenantAndID(tenant, id string) *ContactAggregate
func (*ContactAggregate) HandleCommand ¶
func (a *ContactAggregate) HandleCommand(ctx context.Context, cmd eventstore.Command) error
func (*ContactAggregate) HandleRequest ¶
func (*ContactAggregate) SetEmailNonPrimary ¶
func (a *ContactAggregate) SetEmailNonPrimary(ctx context.Context, emailId, loggedInUserId, appSource string) error
func (*ContactAggregate) SetPhoneNumberNonPrimary ¶
func (a *ContactAggregate) SetPhoneNumberNonPrimary(ctx context.Context, phoneNumberId, loggedInUserId, appSource string) error
func (*ContactAggregate) When ¶
func (a *ContactAggregate) When(evt eventstore.Event) error
Click to show internal directories.
Click to hide internal directories.