Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Create(ctx context.Context, u *storage.User) (*storage.User, error)
- func (r *Repository) Delete(ctx context.Context, id uuid.UUID) error
- func (r *Repository) Get(ctx context.Context, id uuid.UUID) (*storage.User, error)
- func (r *Repository) GetByEmail(ctx context.Context, email string) (*storage.User, error)
- func (r *Repository) List(ctx context.Context, pagination storage.Pagination, ...) ([]*storage.User, error)
- func (r *Repository) Update(ctx context.Context, in *storage.User, fields []storage.UserField) (*storage.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func New ¶
func New(dbConn database.Conn) *Repository
func (*Repository) GetByEmail ¶
GetByEmail get a user by email. This is used for authentication and so it also returns the password.
func (*Repository) List ¶
func (r *Repository) List(ctx context.Context, pagination storage.Pagination, sorting storage.UserOrderBy, conditions ...storage.Condition) ([]*storage.User, error)
List implements user.Repository.
Click to show internal directories.
Click to hide internal directories.