Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProductNameIsBlank = errors.Wrap(errors.ErrBadRequest, "the product name cannot be blank") ErrProductPriceIsNegative = errors.Wrap(errors.ErrBadRequest, "the product price cannot be negative") )
View Source
var ( ErrStoreNameIsBlank = errors.Wrap(errors.ErrBadRequest, "the store name cannot be blank") ErrStoreLocationIsBlank = errors.Wrap(errors.ErrBadRequest, "the store location cannot be blank") ErrStoreIsAlreadyParticipating = errors.Wrap(errors.ErrBadRequest, "the store is already participating") ErrStoreIsAlreadyNotParticipating = errors.Wrap(errors.ErrBadRequest, "the store is already not participating") )
Functions ¶
This section is empty.
Types ¶
type Product ¶
type ProductRepository ¶
type Store ¶
func CreateStore ¶
func (*Store) DisableParticipation ¶
func (*Store) EnableParticipation ¶
type StoreRepository ¶
Click to show internal directories.
Click to hide internal directories.