Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidFirstName = fmt.Errorf("user.User: invalid first name, is empty") ErrInvalidLastName = fmt.Errorf("user.User: invalid last name, is empty") ErrInvalidEmail = fmt.Errorf("user.User: invalid email, is empty") ErrInvalidBirthDate = fmt.Errorf("user.User: invalid birth date, not specified") )
Functions ¶
This section is empty.
Types ¶
type CreateCommand ¶
func (CreateCommand) Name ¶
func (CreateCommand) Name() string
type CreateCommandHandler ¶
type CreateCommandHandler struct {
UUIDGenerator func() uuid.UUID
UserRepository aggregate.Saver[uuid.UUID, *User]
}
func (CreateCommandHandler) Handle ¶
func (h CreateCommandHandler) Handle(ctx context.Context, cmd command.Envelope[CreateCommand]) error
type EmailWasUpdated ¶
type EmailWasUpdated struct {
Email string
}
func (EmailWasUpdated) Name ¶
func (EmailWasUpdated) Name() string
Click to show internal directories.
Click to hide internal directories.