commands

package
v0.0.0-...-76fafce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignShoppingList

type AssignShoppingList struct {
	ID    string
	BotID string
}

type AssignShoppingListHandler

type AssignShoppingListHandler struct {
	// contains filtered or unexported fields
}

func NewAssignShoppingListHandler

func NewAssignShoppingListHandler(shoppingList domain.ShoppingListRepository, domainPublisher ddd.EventPublisher[ddd.AggregateEvent],
) AssignShoppingListHandler

func (AssignShoppingListHandler) AssignShoppingList

func (h AssignShoppingListHandler) AssignShoppingList(ctx context.Context, cmd AssignShoppingList) error

type CancelShoppingList

type CancelShoppingList struct {
	ID string
}

type CancelShoppingListHandler

type CancelShoppingListHandler struct {
	// contains filtered or unexported fields
}

func NewCancelShoppingListHandler

func NewCancelShoppingListHandler(shoppingLists domain.ShoppingListRepository, domainPublisher ddd.EventPublisher[ddd.AggregateEvent],
) CancelShoppingListHandler

func (CancelShoppingListHandler) CancelShoppingList

func (h CancelShoppingListHandler) CancelShoppingList(ctx context.Context, cmd CancelShoppingList) error

type CompleteShoppingList

type CompleteShoppingList struct {
	ID string
}

type CompleteShoppingListHandler

type CompleteShoppingListHandler struct {
	// contains filtered or unexported fields
}

func NewCompleteShoppingListHandler

func NewCompleteShoppingListHandler(shoppingLists domain.ShoppingListRepository, domainPublisher ddd.EventPublisher[ddd.AggregateEvent],
) CompleteShoppingListHandler

func (CompleteShoppingListHandler) CompleteShoppingList

func (h CompleteShoppingListHandler) CompleteShoppingList(ctx context.Context, cmd CompleteShoppingList) error

type CreateShoppingList

type CreateShoppingList struct {
	ID      string
	OrderID string
	Items   []OrderItem
}

type CreateShoppingListHandler

type CreateShoppingListHandler struct {
	// contains filtered or unexported fields
}

func (CreateShoppingListHandler) CreateShoppingList

func (h CreateShoppingListHandler) CreateShoppingList(ctx context.Context, cmd CreateShoppingList) error

type InitiateShopping

type InitiateShopping struct {
	ID string
}

type InitiateShoppingHandler

type InitiateShoppingHandler struct {
	// contains filtered or unexported fields
}

func (InitiateShoppingHandler) InitiateShopping

func (h InitiateShoppingHandler) InitiateShopping(ctx context.Context, cmd InitiateShopping) error

type OrderItem

type OrderItem struct {
	StoreID   string
	ProductID string
	Quantity  int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL