Versions in this module Expand all Collapse all v0 v0.1.1 Aug 3, 2023 v0.1.0 Aug 3, 2023 Changes in this version + var ErrAuthenticationFailure = errors.New("authentication failed") + var ErrNotFound = errors.New("user not found") + var ErrUniqueEmail = errors.New("email is not unique") + type Store struct + func NewStore(log *zap.SugaredLogger, db driver.Database) *Store + func (s *Store) Authenticate(ctx context.Context, email string, password string) (user.User, error) + func (s *Store) Create(ctx context.Context, usr user.User) (user.User, error) + func (s *Store) Delete(ctx context.Context, email mail.Address) (user.User, error) + func (s *Store) QueryByEmail(ctx context.Context, email string) (user.User, error) + func (s *Store) QueryByID(ctx context.Context, id string) (user.User, error) + func (s *Store) Update(ctx context.Context, updateUser user.UpdateUser) (user.User, error)