Documentation ¶
Index ¶
- Variables
- func ValidateBlog(v *validator.Validator, blog *Blog)
- func ValidateEmail(v *validator.Validator, email string)
- func ValidateFilter(v *validator.Validator, f Filter)
- func ValidatePassword(v *validator.Validator, password string)
- func ValidateUser(v *validator.Validator, u *User)
- type Blog
- type BlogModel
- type Filter
- type Metadata
- type Model
- type User
- type UserModel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRecordNotFound = errors.New("record not found") ErrEditConflict = errors.New("edit conflict") )
View Source
var AnonymousUser = &User{}
View Source
var (
ErrDuplicateEmail = errors.New("duplicate email")
)
Functions ¶
func ValidateBlog ¶
func ValidateEmail ¶
func ValidateFilter ¶
func ValidatePassword ¶
func ValidateUser ¶
Types ¶
type Model ¶
Click to show internal directories.
Click to hide internal directories.