Documentation ¶
Index ¶
- Variables
- func NewUserPostgresRepo(db *sqlx.DB) user_microservice_domain.UserRepo
- type UserPostrgesRepo
- func (a *UserPostrgesRepo) Delete(id uint) error
- func (a *UserPostrgesRepo) GetSize() (int, error)
- func (a *UserPostrgesRepo) Insert(user *user_microservice_domain.User) error
- func (a *UserPostrgesRepo) SelectByEmail(email string) (*user_microservice_domain.User, error)
- func (a *UserPostrgesRepo) SelectByID(id uint) (*user_microservice_domain.User, error)
- func (a *UserPostrgesRepo) SelectByUsername(username string) (*user_microservice_domain.User, error)
- func (a *UserPostrgesRepo) Update(id uint, user *user_microservice_domain.User) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewUserPostgresRepo ¶
func NewUserPostgresRepo(db *sqlx.DB) user_microservice_domain.UserRepo
Types ¶
type UserPostrgesRepo ¶
func (*UserPostrgesRepo) Delete ¶
func (a *UserPostrgesRepo) Delete(id uint) error
func (*UserPostrgesRepo) GetSize ¶
func (a *UserPostrgesRepo) GetSize() (int, error)
func (*UserPostrgesRepo) Insert ¶
func (a *UserPostrgesRepo) Insert(user *user_microservice_domain.User) error
func (*UserPostrgesRepo) SelectByEmail ¶
func (a *UserPostrgesRepo) SelectByEmail(email string) (*user_microservice_domain.User, error)
func (*UserPostrgesRepo) SelectByID ¶
func (a *UserPostrgesRepo) SelectByID(id uint) (*user_microservice_domain.User, error)
func (*UserPostrgesRepo) SelectByUsername ¶
func (a *UserPostrgesRepo) SelectByUsername(username string) (*user_microservice_domain.User, error)
func (*UserPostrgesRepo) Update ¶
func (a *UserPostrgesRepo) Update(id uint, user *user_microservice_domain.User) error
Click to show internal directories.
Click to hide internal directories.