Documentation ¶
Index ¶
- Constants
- func NewUser(username, email, password string) (*User, *Password, error)
- func ValidateUsernameRequirements(username string) error
- type EmailInvalidError
- type Hasher
- type Login
- type LoginNotFoundError
- type LoginRepo
- type Password
- type PasswordInvalidLengthError
- type User
- type UserAlreadyExistsError
- type UserNotFoundError
- type UserRepo
- type UsernameInvalidError
Constants ¶
View Source
const LoginStatusInitialized = "initialized"
View Source
const MaxPasswordLen = 128
View Source
const MaxUsernameLen = 64
View Source
const MinPasswordLen = 16
View Source
const MinUsernameLen = 8
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmailInvalidError ¶
type EmailInvalidError struct {
Email string
}
func (EmailInvalidError) Error ¶
func (e EmailInvalidError) Error() string
type Login ¶
type LoginNotFoundError ¶
func (LoginNotFoundError) Error ¶
func (e LoginNotFoundError) Error() string
type PasswordInvalidLengthError ¶
type PasswordInvalidLengthError struct{}
func (PasswordInvalidLengthError) Error ¶
func (e PasswordInvalidLengthError) Error() string
type UserAlreadyExistsError ¶
func (UserAlreadyExistsError) Error ¶
func (e UserAlreadyExistsError) Error() string
type UserNotFoundError ¶
func (UserNotFoundError) Error ¶
func (e UserNotFoundError) Error() string
type UsernameInvalidError ¶
type UsernameInvalidError struct{}
func (UsernameInvalidError) Error ¶
func (e UsernameInvalidError) Error() string
Click to show internal directories.
Click to hide internal directories.