Documentation ¶
Index ¶
- type UserRepository
- func (r *UserRepository) Create(ctx context.Context, u model.User) (int, error)
- func (r *UserRepository) Delete(ctx context.Context, id int) error
- func (r *UserRepository) Get(ctx context.Context, filter model.UserFilter) (*model.User, error)
- func (r *UserRepository) Update(ctx context.Context, u model.User) 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 NewUserRepository ¶
func NewUserRepository(db *pgxpool.Pool) *UserRepository
func (*UserRepository) Get ¶
func (r *UserRepository) Get(ctx context.Context, filter model.UserFilter) (*model.User, error)
Click to show internal directories.
Click to hide internal directories.