Documentation ¶
Overview ¶
Package Customer holds all the domain logic for the customer domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCustomerNotFound is returned when a customer is not found. ErrCustomerNotFound = errors.New("the customer was not found in the repository") // ErrCustomerAlreadyExists is returned when should not change an existing customer. ErrCustomerAlreadyExists = errors.New("the customer already exists in the repository") // ErrFailedToAddCustomer is returned when the customer could not be added to the repository. ErrFailedToAddCustomer = errors.New("failed to add the customer to the repository") // ErrUpdateCustomer is returned when the customer could not be updated in the repository. ErrUpdateCustomer = errors.New("failed to update the customer in the repository") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.