Documentation ¶
Index ¶
- Variables
- type Account
- func (a Account) CreatedAt() time.Time
- func (a Account) DeletedAt() *time.Time
- func (a Account) GivenName() string
- func (a *Account) SetCreatedAt(t time.Time) error
- func (a *Account) SetDeletedAt(t time.Time) error
- func (a *Account) SetGivenName(name string)
- func (a *Account) SetSurname(name string)
- func (a *Account) SetUUID(uuid u.UUID)
- func (a *Account) SetUpdatedAt(t time.Time) error
- func (a *Account) SetUsername(username string)
- func (a Account) Surname() string
- func (a Account) UUID() u.UUID
- func (a Account) UpdatedAt() time.Time
- func (a Account) Username() string
- type AccountParameters
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFutureCreatedAt = errors.New("domain: account creation time cannot be in the future") ErrFutureUpdatedAt = errors.New("domain: account modification time cannot be in the future") ErrInvalidUpdatedAt = errors.New("domain: account modification time cannot be prior to account creation time") ErrFutureDeletedAt = errors.New("domain: account deleton time cannot be in the future") ErrInvalidDeletedAt = errors.New("domain: account deletion time cannot be prior to account creation or modification time") )
Errors that are potentially thrown during account interactions.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func NewAccount(parameters AccountParameters) (Account, error)
func ReconstituteAccount ¶
func ReconstituteAccount(parameters AccountParameters) Account
func (*Account) SetGivenName ¶
func (*Account) SetSurname ¶
func (*Account) SetUsername ¶
Click to show internal directories.
Click to hide internal directories.