user

package
v0.0.0-...-87de96b Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanCreate

func CanCreate(u *dbm.User) bool

CanCreate checks if the user can create user resources

func CanDelete

func CanDelete(u *dbm.User) bool

CanDelete checks if the user can delete user resources

func CanRead

func CanRead(u *dbm.User) bool

CanRead checks if the user can read user resources

func CanUpdate

func CanUpdate(u *dbm.User) bool

CanUpdate checks if the user can update user resources

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 Delete

func Delete(o *orm.ORM, id string) (bool, error)

Delete removes a user from the database for the given ID

func FindByEmail

func FindByEmail(o *orm.ORM, email string) (*model.User, error)

FindByEmail returns a user record for the given email

func FindByID

func FindByID(o *orm.ORM, id string) (*model.User, error)

FindByID returns a user record for the given ID

func List

func List(o *orm.ORM, id *string) (*model.UsersConnection, error)

func NewUserService

func NewUserService() *userService

Types

This section is empty.

Jump to

Keyboard shortcuts

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