aggregate

package
v0.0.0-...-e64b967 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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MasterPlanAggregateType eventstore.AggregateType = "master_plan"
)

Variables

This section is empty.

Functions

func GetMasterPlanObjectID

func GetMasterPlanObjectID(aggregateID string, tenant string) string

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

Jump to

Keyboard shortcuts

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