Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func New ¶
func New(stores domain.StoreRepository, participatingStores domain.ParticipatingStoreRepository, products domain.ProductRepository) *Application
type Commands ¶
type Commands interface {
CreateStore(ctx context.Context, cmd commands.CreateStore) error
EnableParticipation(ctx context.Context, cmd commands.EnableParticipation) error
DisableParticipation(ctx context.Context, cmd commands.DisableParticipation) error
AddProduct(ctx context.Context, cmd commands.AddProduct) error
RemoveProduct(ctx context.Context, cmd commands.RemoveProduct) error
}
type Queries ¶
type Queries interface {
GetStore(ctx context.Context, query queries.GetStore) (*domain.Store, error)
GetStores(ctx context.Context, query queries.GetStores) ([]*domain.Store, error)
GetParticipatingStores(ctx context.Context, query queries.GetParticipatingStores) ([]*domain.Store, error)
GetCatalog(ctx context.Context, query queries.GetCatalog) ([]*domain.Product, error)
GetProduct(ctx context.Context, query queries.GetProduct) (*domain.Product, error)
}
Click to show internal directories.
Click to hide internal directories.