Documentation
¶
Index ¶
- type UserRepository
- func (r *UserRepository) Create(ctx context.Context, user *domain.SignUpInput) (*domain.User, error)
- func (r *UserRepository) DeleteByID(ctx context.Context, id int) error
- func (r *UserRepository) GetAll(ctx context.Context) ([]*domain.User, error)
- func (r *UserRepository) GetByEmail(ctx context.Context, email string) (*domain.User, error)
- func (r *UserRepository) GetByID(ctx context.Context, id int) (*domain.User, error)
- func (r *UserRepository) UpdateByID(ctx context.Context, user *domain.UserUpdate, id int) (*domain.UserUpdate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func New ¶
func New(db *sql.DB) *UserRepository
func (*UserRepository) Create ¶
func (r *UserRepository) Create(ctx context.Context, user *domain.SignUpInput) (*domain.User, error)
func (*UserRepository) DeleteByID ¶
func (r *UserRepository) DeleteByID(ctx context.Context, id int) error
func (*UserRepository) GetByEmail ¶
func (*UserRepository) UpdateByID ¶
func (r *UserRepository) UpdateByID(ctx context.Context, user *domain.UserUpdate, id int) (*domain.UserUpdate, error)
Click to show internal directories.
Click to hide internal directories.