commands

package
v0.0.0-...-3a9fddd Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 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 AddProduct

type AddProduct struct {
	ID          string
	StoreID     string
	Name        string
	Description string
	SKU         string
	Price       float64
}

type AddProductHandler

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

func NewAddProductHandler

func NewAddProductHandler(stores domain.StoreRepository, products domain.ProductRepository, domainPublisher ddd.EventPublisher) AddProductHandler

func (AddProductHandler) AddProduct

func (h AddProductHandler) AddProduct(ctx context.Context, cmd AddProduct) error

type CreateStore

type CreateStore struct {
	ID       string
	Name     string
	Location string
}

type CreateStoreHandler

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

func NewCreateStoreHandler

func NewCreateStoreHandler(stores domain.StoreRepository, domainPublisher ddd.EventPublisher) CreateStoreHandler

func (CreateStoreHandler) CreateStore

func (h CreateStoreHandler) CreateStore(ctx context.Context, cmd CreateStore) error

type DisableParticipation

type DisableParticipation struct {
	ID string
}

type DisableParticipationHandler

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

func NewDisableParticipationHandler

func NewDisableParticipationHandler(stores domain.StoreRepository, domainPublisher ddd.EventPublisher) DisableParticipationHandler

func (DisableParticipationHandler) DisableParticipation

func (h DisableParticipationHandler) DisableParticipation(ctx context.Context, cmd DisableParticipation) error

type EnableParticipation

type EnableParticipation struct {
	ID string
}

type EnableParticipationHandler

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

func NewEnableParticipationHandler

func NewEnableParticipationHandler(stores domain.StoreRepository, domainPublisher ddd.EventPublisher) EnableParticipationHandler

func (EnableParticipationHandler) EnableParticipation

func (h EnableParticipationHandler) EnableParticipation(ctx context.Context, cmd EnableParticipation) error

type RemoveProduct

type RemoveProduct struct {
	ID string
}

type RemoveProductHandler

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

func NewRemoveProductHandler

func NewRemoveProductHandler(products domain.ProductRepository, domainPublisher ddd.EventPublisher) RemoveProductHandler

func (RemoveProductHandler) RemoveProduct

func (h RemoveProductHandler) RemoveProduct(ctx context.Context, cmd RemoveProduct) error

Jump to

Keyboard shortcuts

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