Versions in this module Expand all Collapse all v0 v0.1.0 Nov 17, 2018 Changes in this version + var ErrCmdRepository = errors.New("unable to command repository") + var ErrOrderNotFound = errors.New("order not found") + var ErrQueryRepository = errors.New("unable to query repository") + type Order struct + CreatedOn int64 + CustomerID string + ID string + OrderItems []OrderItem + RestaurantId string + Status string + type OrderItem struct + Name string + ProductCode string + Quantity int32 + UnitPrice float32 + type Repository interface + ChangeOrderStatus func(ctx context.Context, id string, status string) error + CreateOrder func(ctx context.Context, order Order) error + GetOrderByID func(ctx context.Context, id string) (Order, error) + type Service interface + ChangeStatus func(ctx context.Context, id string, status string) error + Create func(ctx context.Context, order Order) (string, error) + GetByID func(ctx context.Context, id string) (Order, error)