Documentation
¶
Index ¶
Constants ¶
View Source
const EventEmailVerified = "EmailVerified"
View Source
const EventRegistrationCreated = "RegistrationCreated"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailVerified ¶
func (EmailVerified) Kind ¶
func (e EmailVerified) Kind() string
type Registration ¶
type Registration struct {
// contains filtered or unexported fields
}
func NewRegistration ¶
func NewRegistration(ctx context.Context, email domain.Email, policy domain.UniqueEmailPolicy) (Registration, error)
func (Registration) Email ¶
func (r Registration) Email() domain.Email
func (Registration) ID ¶
func (r Registration) ID() string
func (Registration) PopEvents ¶
func (r Registration) PopEvents() []eventbus.DomainEvent
func (Registration) Verified ¶
func (r Registration) Verified() bool
func (*Registration) Verify ¶
func (r *Registration) Verify() error
type RegistrationCreatedEvent ¶
func (RegistrationCreatedEvent) Kind ¶
func (e RegistrationCreatedEvent) Kind() string
Click to show internal directories.
Click to hide internal directories.