Documentation ¶
Index ¶
- type Store
- func (s *Store) Close()
- func (s *Store) CreateUser(ctx context.Context, u *model.User) error
- func (s *Store) GetUserByEmail(ctx context.Context, email string) (*model.User, error)
- func (s *Store) GetUserByID(ctx context.Context, id bson.ObjectId) (*model.User, error)
- func (s *Store) GetUserCount(ctx context.Context) (int, 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 of data in mongo
func (*Store) CreateUser ¶
CreateUser insert new user
func (*Store) GetUserByEmail ¶
GetUserByEmail search user by email
func (*Store) GetUserByID ¶
GetUserByID search user collection by id
Click to show internal directories.
Click to hide internal directories.