Documentation ¶
Index ¶
- type Application
- func (a Application) AddProduct(ctx context.Context, cmd commands.AddProduct) (err error)
- func (a Application) CreateStore(ctx context.Context, cmd commands.CreateStore) (err error)
- func (a Application) DecreaseProductPrice(ctx context.Context, cmd commands.DecreaseProductPrice) (err error)
- func (a Application) DisableParticipation(ctx context.Context, cmd commands.DisableParticipation) (err error)
- func (a Application) EnableParticipation(ctx context.Context, cmd commands.EnableParticipation) (err error)
- func (a Application) GetCatalog(ctx context.Context, query queries.GetCatalog) (products []*domain.CatalogProduct, err error)
- func (a Application) GetParticipatingStores(ctx context.Context, query queries.GetParticipatingStores) (store []*domain.MallStore, err error)
- func (a Application) GetProduct(ctx context.Context, query queries.GetProduct) (product *domain.CatalogProduct, err error)
- func (a Application) GetStore(ctx context.Context, query queries.GetStore) (store *domain.MallStore, err error)
- func (a Application) GetStores(ctx context.Context, query queries.GetStores) (stores []*domain.MallStore, err error)
- func (a Application) IncreaseProductPrice(ctx context.Context, cmd commands.IncreaseProductPrice) (err error)
- func (a Application) RebrandProduct(ctx context.Context, cmd commands.RebrandProduct) (err error)
- func (a Application) RebrandStore(ctx context.Context, cmd commands.RebrandStore) (err error)
- func (a Application) RemoveProduct(ctx context.Context, cmd commands.RemoveProduct) (err error)
- type EventHandlers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { application.App // contains filtered or unexported fields }
func LogApplicationAccess ¶
func LogApplicationAccess(application application.App, logger zerolog.Logger) Application
func (Application) AddProduct ¶
func (a Application) AddProduct(ctx context.Context, cmd commands.AddProduct) (err error)
func (Application) CreateStore ¶
func (a Application) CreateStore(ctx context.Context, cmd commands.CreateStore) (err error)
func (Application) DecreaseProductPrice ¶
func (a Application) DecreaseProductPrice(ctx context.Context, cmd commands.DecreaseProductPrice) (err error)
func (Application) DisableParticipation ¶
func (a Application) DisableParticipation(ctx context.Context, cmd commands.DisableParticipation) (err error)
func (Application) EnableParticipation ¶
func (a Application) EnableParticipation(ctx context.Context, cmd commands.EnableParticipation) (err error)
func (Application) GetCatalog ¶
func (a Application) GetCatalog(ctx context.Context, query queries.GetCatalog) (products []*domain.CatalogProduct, err error)
func (Application) GetParticipatingStores ¶
func (a Application) GetParticipatingStores(ctx context.Context, query queries.GetParticipatingStores) (store []*domain.MallStore, err error)
func (Application) GetProduct ¶
func (a Application) GetProduct(ctx context.Context, query queries.GetProduct) (product *domain.CatalogProduct, err error)
func (Application) IncreaseProductPrice ¶
func (a Application) IncreaseProductPrice(ctx context.Context, cmd commands.IncreaseProductPrice) (err error)
func (Application) RebrandProduct ¶
func (a Application) RebrandProduct(ctx context.Context, cmd commands.RebrandProduct) (err error)
func (Application) RebrandStore ¶
func (a Application) RebrandStore(ctx context.Context, cmd commands.RebrandStore) (err error)
func (Application) RemoveProduct ¶
func (a Application) RemoveProduct(ctx context.Context, cmd commands.RemoveProduct) (err error)
type EventHandlers ¶
type EventHandlers[T ddd.Event] struct { ddd.EventHandler[T] // contains filtered or unexported fields }
func LogEventHandlerAccess ¶
func LogEventHandlerAccess[T ddd.Event](handlers ddd.EventHandler[T], label string, logger zerolog.Logger) EventHandlers[T]
func (EventHandlers[T]) HandleEvent ¶
func (h EventHandlers[T]) HandleEvent(ctx context.Context, event T) (err error)
Click to show internal directories.
Click to hide internal directories.