models

package
v0.0.0-...-06bee79 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertUser

func InsertUser(db *sqlx.DB, user *User) error

Types

type User

type User struct {
	Id        int64
	Email     string
	Name      string
	Password  []byte
	Timestamp time.Time
}

func GetUser

func GetUser(db *sqlx.DB, id int64) (*User, error)

func GetUserByEmail

func GetUserByEmail(db *sqlx.DB, email string) (*User, error)

func (*User) HashPassword

func (user *User) HashPassword(password string) error

Jump to

Keyboard shortcuts

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