user

package
v0.0.0-...-bb5e73b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	// ID       int    `json:"id" form:"id" query:"id"`
	// Email    string `json:"email" form:"email" query:"email"`
	// Password string `json:"password" form:"password" query:"password"`
	ID       int    `validate:"required,min=3,max=32"`
	Email    string `validate:"required,email,min=6,max=32"`
	Password string `validate:"required,min=3,max=32"`
}

func SearchUserData

func SearchUserData(Email string, Password string) (error, bool, User)

func (User) CreateUser

func (u User) CreateUser(e string, p string) bool

CreateUser creates a user

Jump to

Keyboard shortcuts

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