Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserQueries ¶
UserQueries struct for queries from User model.
func (*UserQueries) CreateUser ¶
func (q *UserQueries) CreateUser(u *models.User) error
CreateUser query for creating a new user by given email and password hash.
func (*UserQueries) GetUserByEmail ¶
func (q *UserQueries) GetUserByEmail(email string) (models.User, error)
GetUserByEmail query for getting one User by given Email.
func (*UserQueries) GetUserByID ¶
GetUserByID query for getting one User by given ID.
Click to show internal directories.
Click to hide internal directories.