models

package
v0.0.0-...-3322378 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDbMap

func GetDbMap(user, password, hostname, port, database string) *gorp.DbMap

func InsertUser

func InsertUser(dbMap *gorp.DbMap, user *User) error

Types

type User

type User struct {
	Id       int64 `db:"UserId"`
	Email    string
	Username string
	Password []byte
}

func GetUserByEmail

func GetUserByEmail(dbMap *gorp.DbMap, email string) (user *User)

func (*User) HashPassword

func (user *User) HashPassword(password string)

Jump to

Keyboard shortcuts

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