users

package
v0.0.0-...-6740b9f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2014 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNotFound error = fmt.Errorf("user: Not found!")
)

Functions

This section is empty.

Types

type Storage

type Storage struct {
	AppEngineContext appengine.Context
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(appEngineContext appengine.Context) *Storage

func (*Storage) Delete

func (self *Storage) Delete(id t.UserId) error

func (*Storage) Find

func (self *Storage) Find(id t.UserId) (t.User, error)

func (*Storage) FindAllActive

func (self *Storage) FindAllActive() (t.Users, error)

func (*Storage) FindAllByStatus

func (self *Storage) FindAllByStatus(status t.UserStatus) (t.Users, error)

func (*Storage) FindByEmail

func (self *Storage) FindByEmail(email string) (t.User, error)

func (*Storage) FindMulti

func (self *Storage) FindMulti(ids t.UserIds) (t.Users, error)

func (*Storage) Save

func (self *Storage) Save(user *t.User) error

func (*Storage) Update

func (self *Storage) Update(user t.User) (t.User, error)

type Users

type Users struct {
	AppEngineContext appengine.Context
	Storage          *Storage
}

func NewUsers

func NewUsers(appEngineContext appengine.Context) *Users

func (*Users) Create

func (self *Users) Create(user *t.User) error

func (*Users) Delete

func (self *Users) Delete(id t.UserId) error

func (*Users) Find

func (self *Users) Find(id t.UserId) (t.User, error)

func (*Users) FindAll

func (self *Users) FindAll(status t.UserStatus) (t.Users, error)

func (*Users) FindAllActive

func (self *Users) FindAllActive() (t.Users, error)

func (*Users) FindByEmail

func (self *Users) FindByEmail(email string) (t.User, error)

func (*Users) FindMulti

func (self *Users) FindMulti(ids t.UserIds) (t.Users, error)

func (*Users) Update

func (self *Users) Update(user t.User) (t.User, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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