Documentation ¶
Index ¶
- type SqlHandler
- type UserRepository
- func (repository *UserRepository) DeleteById(id uuid.UUID) (err error)
- func (repository *UserRepository) FindAll() (users models.Users, err error)
- func (repository *UserRepository) FindById(id uuid.UUID) (user models.User, err error)
- func (repository *UserRepository) Store(u models.User) (user models.User, err error)
- func (repository *UserRepository) Update(id uuid.UUID, u models.User) (user models.User, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlHandler ¶
type SqlHandler interface { Exec(string, ...interface{}) *gorm.DB Find(interface{}, ...interface{}) *gorm.DB First(interface{}, ...interface{}) *gorm.DB Raw(string, ...interface{}) *gorm.DB Create(interface{}) *gorm.DB Save(interface{}) *gorm.DB Delete(interface{}) *gorm.DB Where(interface{}, ...interface{}) *gorm.DB }
type UserRepository ¶
type UserRepository struct {
SqlHandler
}
func (*UserRepository) DeleteById ¶
func (repository *UserRepository) DeleteById(id uuid.UUID) (err error)
func (*UserRepository) FindAll ¶
func (repository *UserRepository) FindAll() (users models.Users, err error)
Click to show internal directories.
Click to hide internal directories.