Documentation ¶
Index ¶
Constants ¶
View Source
const (
Cost = 10
)
View Source
const (
MaxMessageLength = 20
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatMessage ¶
type ChatMessage string
func ValidateChatMessage ¶
func ValidateChatMessage(message string) (ChatMessage, domain.ValidationError)
type Email ¶
type Email string
func ValidateEmail ¶
func ValidateEmail(email string) (Email, domain.ValidationError)
type Password ¶
type Password []byte
func ValidatePassword ¶
func ValidatePassword(password string) (Password, domain.ValidationError)
func (Password) Hash ¶
func (p Password) Hash() (PasswordHash, error)
type PasswordHash ¶
type PasswordHash []byte
func (PasswordHash) Equal ¶
func (p PasswordHash) Equal(password Password) error
Click to show internal directories.
Click to hide internal directories.