Documentation
¶
Index ¶
- Variables
- type UserRepo
- func (r *UserRepo) DeleteUser(ctx context.Context, id string) error
- func (r *UserRepo) SaveUser(ctx context.Context, user model.User) (string, error)
- func (r *UserRepo) UpdateUser(ctx context.Context, user entity.UserMap) error
- func (r *UserRepo) User(ctx context.Context, params vo.UserParams) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserNotFound = errors.New("user not found") ErrUserExists = errors.New("user already exists") )
Functions ¶
This section is empty.
Types ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func NewUserRepo(db *sqlx.DB, placeHolder sq.PlaceholderFormat) *UserRepo
func (*UserRepo) DeleteUser ¶
func (*UserRepo) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.