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