models

package
v0.0.0-...-ad30d7b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePassword

func ValidatePassword(c *revel.Controller, v *revel.Validation, password string)

Types

type Company

type Company struct {
	No   int
	Name string
}

func (*Company) Validate

func (company *Company) Validate(v *revel.Validation)

type EmailDomain

type EmailDomain struct {
	No        int
	Domain    string
	CompanyNo int

	// Transient
	Company *Company
}

func (*EmailDomain) PostGet

func (emailDomain *EmailDomain) PostGet(exe gorp.SqlExecutor) error

func (*EmailDomain) PreInsert

func (emailDomain *EmailDomain) PreInsert(_ gorp.SqlExecutor) error

func (*EmailDomain) String

func (emailDomain *EmailDomain) String() string

func (*EmailDomain) Validate

func (emailDomain *EmailDomain) Validate(v *revel.Validation)

type User

type User struct {
	No             int
	Email          string // email
	Name           string
	Password       string
	HashedPassword []byte
	EmailDomain    *EmailDomain
}

func (*User) String

func (user *User) String() string

func (*User) Validate

func (user *User) Validate(c *revel.Controller, v *revel.Validation)

Jump to

Keyboard shortcuts

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