Documentation ¶
Index ¶
- func CNAME(tenants storage.Tenant, cname string) []string
- func Email(email string) []string
- func ImageUpload(upload *models.ImageUpload, minWidth, minHeight, maxKilobytes int) ([]string, error)
- func Subdomain(tenants storage.Tenant, subdomain string) ([]string, error)
- func URL(rawurl string) []string
- type ErrorItem
- type Result
- type Validatable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageUpload ¶ added in v0.15.0
func ImageUpload(upload *models.ImageUpload, minWidth, minHeight, maxKilobytes int) ([]string, error)
ImageUpload validates given image upload
Types ¶
type Result ¶
Result is returned after each validation
func Unauthorized ¶
func Unauthorized() *Result
Unauthorized returns an unauthorized validation result
func (*Result) AddFieldFailure ¶
AddFieldFailure add failure message to specific field
Click to show internal directories.
Click to hide internal directories.