Documentation ¶
Index ¶
- Constants
- func GetLocationObjectID(aggregateID string, tenant string) string
- type LocationAggregate
- func (a *LocationAggregate) HandleCommand(ctx context.Context, cmd eventstore.Command) error
- func (a *LocationAggregate) OnLocationFailedValidation(event eventstore.Event) error
- func (a *LocationAggregate) OnLocationSkippedValidation(event eventstore.Event) error
- func (a *LocationAggregate) OnLocationValidated(event eventstore.Event) error
- func (a *LocationAggregate) When(event eventstore.Event) error
Constants ¶
View Source
const (
LocationAggregateType eventstore.AggregateType = "location"
)
Variables ¶
This section is empty.
Functions ¶
func GetLocationObjectID ¶
GetLocationObjectID get location id for eventstoredb
Types ¶
type LocationAggregate ¶
type LocationAggregate struct { *eventstore.CommonTenantIdAggregate Location *models.Location }
func LoadLocationAggregate ¶
func LoadLocationAggregate(ctx context.Context, eventStore eventstore.AggregateStore, tenant, objectID string) (*LocationAggregate, error)
func NewLocationAggregateWithTenantAndID ¶
func NewLocationAggregateWithTenantAndID(tenant, id string) *LocationAggregate
func (*LocationAggregate) HandleCommand ¶
func (a *LocationAggregate) HandleCommand(ctx context.Context, cmd eventstore.Command) error
func (*LocationAggregate) OnLocationFailedValidation ¶
func (a *LocationAggregate) OnLocationFailedValidation(event eventstore.Event) error
func (*LocationAggregate) OnLocationSkippedValidation ¶
func (a *LocationAggregate) OnLocationSkippedValidation(event eventstore.Event) error
func (*LocationAggregate) OnLocationValidated ¶
func (a *LocationAggregate) OnLocationValidated(event eventstore.Event) error
func (*LocationAggregate) When ¶
func (a *LocationAggregate) When(event eventstore.Event) error
Click to show internal directories.
Click to hide internal directories.