Documentation
¶
Index ¶
- type UserRepo
- func (u *UserRepo) CreateNewUser(ctx context.Context, username string, email string, password string) (*ent.User, error)
- func (u *UserRepo) FindByEmail(ctx context.Context, email string) (*ent.User, error)
- func (u *UserRepo) FindByName(ctx context.Context, name string) (*ent.User, error)
- func (u *UserRepo) FindByNameOrMail(ctx context.Context, name string) (*ent.User, error)
- func (u *UserRepo) UpdateOnePassword(ctx context.Context, id int, password string) (*ent.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepo ¶
func NewUserRepo ¶
func (*UserRepo) CreateNewUser ¶
func (u *UserRepo) CreateNewUser(ctx context.Context, username string, email string, password string) (*ent.User, error)
CreateNewUser creates a new user with the minimum information
func (*UserRepo) FindByEmail ¶
FindByEmail returns a User matching the given email
func (*UserRepo) FindByName ¶
FindByName returns a user matching the given name
func (*UserRepo) FindByNameOrMail ¶
FindByNameOrMail returns a User matching the given name or email
Click to show internal directories.
Click to hide internal directories.