Documentation ¶
Index ¶
- Variables
- type Storage
- func (self *Storage) Delete(id t.UserId) error
- func (self *Storage) Find(id t.UserId) (t.User, error)
- func (self *Storage) FindAllActive() (t.Users, error)
- func (self *Storage) FindAllByStatus(status t.UserStatus) (t.Users, error)
- func (self *Storage) FindByEmail(email string) (t.User, error)
- func (self *Storage) FindMulti(ids t.UserIds) (t.Users, error)
- func (self *Storage) Save(user *t.User) error
- func (self *Storage) Update(user t.User) (t.User, error)
- type Users
- func (self *Users) Create(user *t.User) error
- func (self *Users) Delete(id t.UserId) error
- func (self *Users) Find(id t.UserId) (t.User, error)
- func (self *Users) FindAll(status t.UserStatus) (t.Users, error)
- func (self *Users) FindAllActive() (t.Users, error)
- func (self *Users) FindByEmail(email string) (t.User, error)
- func (self *Users) FindMulti(ids t.UserIds) (t.Users, error)
- func (self *Users) Update(user t.User) (t.User, error)
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 (*Storage) FindAllByStatus ¶
Click to show internal directories.
Click to hide internal directories.