aggregate

package
v0.0.0-...-4518f94 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InteractionEventAggregateType eventstore.AggregateType = "interaction_event"
)

Variables

This section is empty.

Functions

func GetInteractionEventObjectID

func GetInteractionEventObjectID(aggregateID string, tenant string) string

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 (a *InteractionEventAggregate) ReplaceActionItems(ctx context.Context, tenant string, actionItems []string, updatedAt *time.Time) error

func (*InteractionEventAggregate) ReplaceSummary

func (a *InteractionEventAggregate) ReplaceSummary(ctx context.Context, tenant, summary, contentType string, updatedAt *time.Time) error

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

Jump to

Keyboard shortcuts

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