Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrProductNotFound = Error("product not found") ErrProductQtyBalanceOut = Error("product qty balance out") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductAggregate ¶
type ProductAggregate struct { pigeon.AggregateMixin Name string ImageURL string Price int64 Qty int64 }
func (*ProductAggregate) ApplyChange ¶
func (a *ProductAggregate) ApplyChange(event pigeon.Event) error
Click to show internal directories.
Click to hide internal directories.