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 func for creating user by given User object.
func (*UserQueries) DeleteUser ¶
func (q *UserQueries) DeleteUser(id uuid.UUID) error
DeleteUser func for delete user by given ID.
func (*UserQueries) GetUsers ¶
func (q *UserQueries) GetUsers() ([]models.User, error)
GetUsers func for getting all users.
func (*UserQueries) UpdateUser ¶
func (q *UserQueries) UpdateUser(u *models.User) error
UpdateUser func for updating user by given User object.
Click to show internal directories.
Click to hide internal directories.