Documentation ¶
Index ¶
- Constants
- func InvalidEmail() (string, error)
- func InvalidId() (string, error)
- func NewEmail(email string) (models.ValueObject[string], error)
- func NewId(id string) (models.ValueObject[string], error)
- func NewPassword(password string) (models.ValueObject[string], error)
- func NewUsername(username string) (models.ValueObject[string], error)
- func NewVerified(verified bool) (models.ValueObject[bool], error)
- func RandomEmail() (models.ValueObject[string], error)
- func RandomId() (models.ValueObject[string], error)
- func RandomPassword() (models.ValueObject[string], error)
- func RandomUsername() (models.ValueObject[string], error)
- func WithInvalidPasswordLength() (string, error)
- func WithInvalidUsernameAlphanumeric() (string, error)
- func WithInvalidUsernameLength() (string, error)
- type Password
- type Username
- type Verified
Constants ¶
View Source
const PasswordMaxCharactersLength = "64"
View Source
const PasswordMinCharactersLength = "8"
View Source
const UsernameMaxCharactersLength = "20"
View Source
const UsernameMinCharactersLength = "2"
Variables ¶
This section is empty.
Functions ¶
func InvalidEmail ¶
func NewPassword ¶
func NewPassword(password string) (models.ValueObject[string], error)
func NewUsername ¶
func NewUsername(username string) (models.ValueObject[string], error)
func NewVerified ¶
func NewVerified(verified bool) (models.ValueObject[bool], error)
func RandomEmail ¶
func RandomEmail() (models.ValueObject[string], error)
func RandomPassword ¶
func RandomPassword() (models.ValueObject[string], error)
func RandomUsername ¶
func RandomUsername() (models.ValueObject[string], error)
Types ¶
Click to show internal directories.
Click to hide internal directories.