Documentation
¶
Index ¶
- func NewStore(db *database.GormDB, logger logging.Logger) user.Repository
- type Store
- func (s *Store) Count(ctx context.Context) (int, error)
- func (s *Store) Create(ctx context.Context, u *user.User) error
- func (s *Store) Delete(ctx context.Context, id string) error
- func (s *Store) GetByEmail(ctx context.Context, email string) (*user.User, error)
- func (s *Store) GetByID(ctx context.Context, id string) (*user.User, error)
- func (s *Store) GetByIDString(ctx context.Context, id string) (*user.User, error)
- func (s *Store) List(ctx context.Context) ([]user.User, error)
- func (s *Store) ListPaginated(ctx context.Context, params common.PaginationParams) common.PaginationResult
- func (s *Store) Update(ctx context.Context, userModel *user.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements user.Repository interface
func (*Store) GetByEmail ¶
GetByEmail retrieves a user by email
func (*Store) GetByIDString ¶
GetByIDString retrieves a user by ID string
func (*Store) ListPaginated ¶
func (s *Store) ListPaginated(ctx context.Context, params common.PaginationParams) common.PaginationResult
ListPaginated returns a paginated list of users
Click to show internal directories.
Click to hide internal directories.