User

package
v0.0.0-...-7560bf5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUser

func NewUser(id int64, fullname, email string) *user

Types

type User

type User interface {
	UUID() interface{}
	Id() int64
	FullName() string
	Email() string

	SetFullName(fullName string)

	Clone() User
}

type UserRepository

type UserRepository interface {
	GetById(id int64) User
	GetByUUID(uuid interface{}) User
	GetByEmail(email string) User
	VerifyAndGetUserFromCredentials(email, guessedPassword string) User

	Insert(fullName, email, rawPassword string) User
	Update(User)
}

Jump to

Keyboard shortcuts

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