Documentation ¶
Index ¶
- Constants
- func GetInteractionEventObjectID(aggregateID string, tenant string) string
- type InteractionEventAggregate
- func (a *InteractionEventAggregate) HandleCommand(ctx context.Context, cmd eventstore.Command) error
- func (a *InteractionEventAggregate) ReplaceActionItems(ctx context.Context, tenant string, actionItems []string, updatedAt *time.Time) error
- func (a *InteractionEventAggregate) ReplaceSummary(ctx context.Context, tenant, summary, contentType string, updatedAt *time.Time) error
- func (a *InteractionEventAggregate) RequestActionItems(ctx context.Context, tenant string) error
- func (a *InteractionEventAggregate) RequestSummary(ctx context.Context, tenant string) error
- func (a *InteractionEventAggregate) When(evt eventstore.Event) error
Constants ¶
View Source
const (
InteractionEventAggregateType eventstore.AggregateType = "interaction_event"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InteractionEventAggregate ¶
type InteractionEventAggregate struct { *aggregate.CommonTenantIdAggregate InteractionEvent *model.InteractionEvent }
func LoadInteractionEventAggregate ¶
func LoadInteractionEventAggregate(ctx context.Context, eventStore eventstore.AggregateStore, tenant, objectID string) (*InteractionEventAggregate, error)
func NewInteractionEventAggregateWithTenantAndID ¶
func NewInteractionEventAggregateWithTenantAndID(tenant, id string) *InteractionEventAggregate
func (*InteractionEventAggregate) HandleCommand ¶
func (a *InteractionEventAggregate) HandleCommand(ctx context.Context, cmd eventstore.Command) error
func (*InteractionEventAggregate) ReplaceActionItems ¶
func (*InteractionEventAggregate) ReplaceSummary ¶
func (*InteractionEventAggregate) RequestActionItems ¶
func (a *InteractionEventAggregate) RequestActionItems(ctx context.Context, tenant string) error
func (*InteractionEventAggregate) RequestSummary ¶
func (a *InteractionEventAggregate) RequestSummary(ctx context.Context, tenant string) error
func (*InteractionEventAggregate) When ¶
func (a *InteractionEventAggregate) When(evt eventstore.Event) error
Click to show internal directories.
Click to hide internal directories.