Documentation ¶
Index ¶
Constants ¶
View Source
const (
OpportunityAggregateType eventstore.AggregateType = "opportunity"
)
Variables ¶
This section is empty.
Functions ¶
func GetOpportunityObjectID ¶
Types ¶
type OpportunityAggregate ¶
type OpportunityAggregate struct { *eventstore.CommonTenantIdAggregate Opportunity *model.Opportunity }
func LoadOpportunityAggregate ¶
func LoadOpportunityAggregate(ctx context.Context, eventStore eventstore.AggregateStore, tenant, objectID string) (*OpportunityAggregate, error)
func NewOpportunityAggregateWithTenantAndID ¶
func NewOpportunityAggregateWithTenantAndID(tenant, id string) *OpportunityAggregate
func (*OpportunityAggregate) HandleCommand ¶
func (a *OpportunityAggregate) HandleCommand(ctx context.Context, cmd eventstore.Command) error
HandleCommand processes commands and applies the resulting events to the aggregate.
func (*OpportunityAggregate) HandleGRPCRequest ¶
func (*OpportunityAggregate) When ¶
func (a *OpportunityAggregate) When(evt eventstore.Event) error
Click to show internal directories.
Click to hide internal directories.