Documentation ¶
Index ¶
- func CanCreate(u *dbm.User) bool
- func CanDelete(u *dbm.User) bool
- func CanRead(u *dbm.User) bool
- func CanUpdate(u *dbm.User) bool
- func CreateUpdate(o *orm.ORM, input model.UserInput, update bool, ids ...string) (*model.User, error)
- func Delete(o *orm.ORM, id string) (bool, error)
- func FindByEmail(o *orm.ORM, email string) (*model.User, error)
- func FindByID(o *orm.ORM, id string) (*model.User, error)
- func List(o *orm.ORM, id *string) (*model.UsersConnection, error)
- func NewUserService() *userService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUpdate ¶
func CreateUpdate( o *orm.ORM, input model.UserInput, update bool, ids ...string, ) (*model.User, error)
CreateUpdate is used to create a new user if one does not exist for the input, or update it if one does
func FindByEmail ¶
FindByEmail returns a user record for the given email
func NewUserService ¶
func NewUserService() *userService
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.