Documentation
¶
Index ¶
- Variables
- func NewStore(db *database.Database, logger logging.Logger) user.Store
- type Store
- func (s *Store) Create(ctx context.Context, u *user.User) error
- func (s *Store) Delete(ctx context.Context, id uint) error
- func (s *Store) GetByEmail(ctx context.Context, email string) (*user.User, error)
- func (s *Store) GetByID(ctx context.Context, id uint) (*user.User, error)
- func (s *Store) List(ctx context.Context) ([]user.User, error)
- func (s *Store) Update(ctx context.Context, u *user.User) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserNotFound is returned when a user cannot be found ErrUserNotFound = errors.New("user not found") )
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements user.Store interface
func (*Store) GetByEmail ¶
GetByEmail retrieves a user by email
Click to show internal directories.
Click to hide internal directories.