model

package
v0.0.0-...-58914f8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserCreate

func UserCreate(first_name, last_name, email, password string) error

Types

type User

type User struct {
	Email      string    `json:"email"`
	First_name string    `json:"first_name"`
	Last_name  string    `json:"last_name"`
	Password   string    `json:"password"`
	Created_at time.Time `json:"created_at"`
	Updated_at time.Time `json:"updated_at"`
}

func UserByEmail

func UserByEmail(email string) (User, error)

UserByEmail gets user information from email

func UserIdByEmail

func UserIdByEmail(email string) (User, error)

UserIdByEmail gets user id from email

Jump to

Keyboard shortcuts

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