registration

package
v0.0.0-...-0b5492d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 6 Imported by: 0

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

type EmailVerified struct {
	Email domain.Email
}

func (EmailVerified) Kind

func (e EmailVerified) Kind() string

type Registration

type Registration struct {
	// contains filtered or unexported fields
}

func Hydrate

func Hydrate(id string, email domain.Email, verified bool) (Registration, error)

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

type RegistrationCreatedEvent struct {
	ID    string
	Email domain.Email
}

func (RegistrationCreatedEvent) Kind

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL