Documentation ¶
Index ¶
- type UserRepo
- func (r *UserRepo) DeleteByID(id string) (bool, error)
- func (r *UserRepo) FindAll() ([]model.User, error)
- func (r *UserRepo) FindByEmail(email string) (model.User, error)
- func (r *UserRepo) FindByID(id string) (model.User, error)
- func (r *UserRepo) Save(u *model.User) (model.User, error)
- func (r *UserRepo) Update(u *model.User) (model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
User repository
func (*UserRepo) DeleteByID ¶
Delete user by its id
func (*UserRepo) FindByEmail ¶
Find user by its email
Click to show internal directories.
Click to hide internal directories.