user

package
v0.0.0-...-8242075 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Email    string
	Password []byte
}

User is a user

func Create

func Create(email, password string) (*User, error)

Create creates a new user

func Get

func Get(email string) (*User, error)

Get gets a user

func (User) ValidatePassword

func (u User) ValidatePassword(password string) (bool, error)

ValidatePassword validates a users password

Jump to

Keyboard shortcuts

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