user

package
v0.0.0-...-b76ee76 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package user provides access to the user table in the MySQL database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(firstName, lastName, email, password string) (sql.Result, error)

Create creates user.

Types

type Item

type Item struct {
	ID        uint32         `db:"id"`
	FirstName string         `db:"first_name"`
	LastName  string         `db:"last_name"`
	Email     string         `db:"email"`
	Password  string         `db:"password"`
	StatusID  uint8          `db:"status_id"`
	CreatedAt mysql.NullTime `db:"created_at"`
	UpdatedAt mysql.NullTime `db:"updated_at"`
	DeletedAt mysql.NullTime `db:"deleted_at"`
}

Item defines the model.

func ByEmail

func ByEmail(email string) (Item, error)

ByEmail gets user information from email.

Jump to

Keyboard shortcuts

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