Documentation ¶
Overview ¶
Package userdb contains user related CRUD functionality.
Index ¶
- type Store
- func (s *Store) Create(usr user.User) error
- func (s *Store) Delete(usr user.User) error
- func (s *Store) Query(pageNumber int, rowsPerPage int) ([]user.User, error)
- func (s *Store) QueryByEmail(email string) (user.User, error)
- func (s *Store) QueryByID(id uuid.UUID) (user.User, error)
- func (s *Store) QueryByTopicID(topicID uuid.UUID) ([]user.User, error)
- func (s *Store) Update(usr user.User) error
- func (s *Store) WithinTran(fn func(user.Storer) error) 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) QueryByEmail ¶
QueryByEmail gets the specified user from the database by email.
func (*Store) QueryByTopicID ¶
Click to show internal directories.
Click to hide internal directories.