models

package
v0.0.0-...-8a2aeaf Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	gorm.Model
	Username       string `valid:"required,length(4|15)" schema:username`
	Password       string `gorm:"-" valid:"required,length(5|15)" schema:"password"`
	Email          string `valid:"required,email" schema:"email"`
	VerifyPass     string `gorm:"-" schema:"verifypass"`
	HashedPassword string
}

func (*Account) Validate

func (u *Account) Validate() error

Jump to

Keyboard shortcuts

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