Versions in this module Expand all Collapse all v0 v0.2.0 Mar 21, 2018 v0.1.0 Mar 21, 2018 Changes in this version + const AddItemCommand + const AggregateType + const CheckAllItemsCommand + const CheckItemCommand + const CreateCommand + const Created + const DeleteCommand + const Deleted + const ItemAdded + const ItemChecked + const ItemDescriptionSet + const ItemRemoved + const RemoveCompletedItemsCommand + const RemoveItemCommand + const SetItemDescriptionCommand + var TimeNow = time.Now + type AddItem struct + Description string + ID eh.UUID + func (c *AddItem) AggregateID() eh.UUID + func (c *AddItem) AggregateType() eh.AggregateType + func (c *AddItem) CommandType() eh.CommandType + type Aggregate struct + func (a *Aggregate) ApplyEvent(ctx context.Context, event eh.Event) error + func (a *Aggregate) HandleCommand(ctx context.Context, cmd eh.Command) error + type CheckAllItems struct + Checked bool + ID eh.UUID + func (c *CheckAllItems) AggregateID() eh.UUID + func (c *CheckAllItems) AggregateType() eh.AggregateType + func (c *CheckAllItems) CommandType() eh.CommandType + type CheckItem struct + Checked bool + ID eh.UUID + ItemID int + func (c *CheckItem) AggregateID() eh.UUID + func (c *CheckItem) AggregateType() eh.AggregateType + func (c *CheckItem) CommandType() eh.CommandType + type Create struct + ID eh.UUID + func (c *Create) AggregateID() eh.UUID + func (c *Create) AggregateType() eh.AggregateType + func (c *Create) CommandType() eh.CommandType + type Delete struct + ID eh.UUID + func (c *Delete) AggregateID() eh.UUID + func (c *Delete) AggregateType() eh.AggregateType + func (c *Delete) CommandType() eh.CommandType + type ItemAddedData struct + Description string + ItemID int + type ItemCheckedData struct + Checked bool + ItemID int + type ItemDescriptionSetData struct + Description string + ItemID int + type ItemRemovedData struct + ItemID int + type Projector struct + func (p *Projector) Project(ctx context.Context, event eh.Event, entity eh.Entity) (eh.Entity, error) + func (p *Projector) ProjectorType() projector.Type + type RemoveCompletedItems struct + ID eh.UUID + func (c *RemoveCompletedItems) AggregateID() eh.UUID + func (c *RemoveCompletedItems) AggregateType() eh.AggregateType + func (c *RemoveCompletedItems) CommandType() eh.CommandType + type RemoveItem struct + ID eh.UUID + ItemID int + func (c *RemoveItem) AggregateID() eh.UUID + func (c *RemoveItem) AggregateType() eh.AggregateType + func (c *RemoveItem) CommandType() eh.CommandType + type SetItemDescription struct + Description string + ID eh.UUID + ItemID int + func (c *SetItemDescription) AggregateID() eh.UUID + func (c *SetItemDescription) AggregateType() eh.AggregateType + func (c *SetItemDescription) CommandType() eh.CommandType + type TodoItem struct + Completed bool + Description string + ID int + type TodoList struct + CreatedAt time.Time + ID eh.UUID + Items []*TodoItem + UpdatedAt time.Time + Version int + func (t *TodoList) AggregateVersion() int + func (t *TodoList) EntityID() eh.UUID