Documentation ¶
Index ¶
- Variables
- type 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)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(log *zap.SugaredLogger, db driver.Database) *Store
NewStore constructs the api for data access.
func (*Store) Authenticate ¶
func (*Store) QueryByEmail ¶
QueryById queries a user by email.
Click to show internal directories.
Click to hide internal directories.