data

package
v0.0.0-...-e46c3b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2021 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPasswordValidator

func RegisterPasswordValidator(validate *validator.Validate)

RegisterPasswordValidator registers validator for password.

Types

type Auth

type Auth struct {
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"min=8,max=32,password"`
}

Auth represents authentication data.

type User

type User struct {
	Name     string `json:"name" validate:"min=3,max=64"`
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"min=8,max=32,password"`
}

User represents the user data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL