Documentation ¶
Overview ¶
Package userdb contains user related CRUD functionality.
Index ¶
- type Store
- func (s *Store) Create(ctx context.Context, core user.User) error
- func (s *Store) QueryByID(ctx context.Context, id uuid.UUID) (user.User, error)
- func (s *Store) QueryByIDs(ctx context.Context, ids []uuid.UUID) ([]user.User, error)
- func (s *Store) QueryByPhone(ctx context.Context, phone string) (user.User, error)
- func (s *Store) Update(ctx context.Context, core user.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages the set of APIs for user database access.
func (*Store) QueryByIDs ¶
QueryByIDs gets the specified users from the database.
func (*Store) QueryByPhone ¶
QueryByPhone gets the specified user from the database by email.
Click to show internal directories.
Click to hide internal directories.