Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Customer ¶
type Customer struct {
// contains filtered or unexported fields
}
Customer entity (and also root aggregate).
func NewCustomer ¶
func NewCustomer(ctx context.Context, email domain.Email, policy domain.UniqueEmailPolicy) (Customer, error)
NewCustomer creates a customer
func (Customer) ID ¶
func (c Customer) ID() CustomerID
func (*Customer) UpdateInfo ¶
type CustomerID ¶
type CustomerID struct {
// contains filtered or unexported fields
}
func MustParseCustomerID ¶
func MustParseCustomerID( id string, ) CustomerID
func NewCustomerID ¶
func NewCustomerID() CustomerID
func ParseCustomerID ¶
func ParseCustomerID(s string) (CustomerID, error)
func (CustomerID) Id ¶
func (c CustomerID) Id() uuid.UUID
func (CustomerID) IsZero ¶
func (c CustomerID) IsZero() bool
func (CustomerID) String ¶
func (c CustomerID) String() string
Click to show internal directories.
Click to hide internal directories.