Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfirmOrderCmd ¶
type ConfirmOrderCmd struct {
ID string
}
ConfirmOrderCmd confirms a pending order.
func (ConfirmOrderCmd) AggregateID ¶
func (c ConfirmOrderCmd) AggregateID() string
func (ConfirmOrderCmd) EmitEvent ¶
func (c ConfirmOrderCmd) EmitEvent(current *domain.Order) domain.Order
func (ConfirmOrderCmd) EventName ¶
func (c ConfirmOrderCmd) EventName() string
func (ConfirmOrderCmd) ShouldSnapshot ¶
func (c ConfirmOrderCmd) ShouldSnapshot() bool
type CreateOrderCmd ¶
CreateOrderCmd creates a new order.
func (CreateOrderCmd) AggregateID ¶
func (c CreateOrderCmd) AggregateID() string
func (CreateOrderCmd) EmitEvent ¶
func (c CreateOrderCmd) EmitEvent(current *domain.Order) domain.Order
func (CreateOrderCmd) EventName ¶
func (c CreateOrderCmd) EventName() string
func (CreateOrderCmd) ShouldSnapshot ¶
func (c CreateOrderCmd) ShouldSnapshot() bool
type ShipOrderCmd ¶
type ShipOrderCmd struct {
ID string
}
ShipOrderCmd marks an order as shipped.
func (ShipOrderCmd) AggregateID ¶
func (c ShipOrderCmd) AggregateID() string
func (ShipOrderCmd) EventName ¶
func (c ShipOrderCmd) EventName() string
func (ShipOrderCmd) ShouldSnapshot ¶
func (c ShipOrderCmd) ShouldSnapshot() bool
Click to show internal directories.
Click to hide internal directories.