Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidID used when we receive an invalid ID ErrInvalidID = errors.New("is not a valid UUID") // ErrProductNoAvailable used when the product is not available ErrProductNoAvailable = errors.New("product no available") // ErrProductNotFound used when the product does not exist in database ErrProductNotFound = errors.New("product not found") )
Functions ¶
This section is empty.
Types ¶
type Purchase ¶
type Purchase struct {
// contains filtered or unexported fields
}
Purchase type encapsulates all the base for the purchase service
func NewPurchaseService ¶
func NewPurchaseService(p PurchaseRepository) Purchase
NewPurchaseService method to instance a purchase service
Click to show internal directories.
Click to hide internal directories.