Documentation ¶
Index ¶
- Variables
- type Service
- func (s *Service) GetByEmail(ctx context.Context, email string) (*User, error)
- func (s *Service) GetByEmailWithPasswordCheck(ctx context.Context, email, password string) (*User, error)
- func (s *Service) GetByID(ctx context.Context, id int64) (*User, error)
- func (s *Service) Register(ctx context.Context, email, pass string) (*User, error)
- func (s *Service) ResolveWithGoogle(ctx context.Context, user *auth.GoogleUser) (*User, error)
- func (s *Service) UpdatePassword(ctx context.Context, id int64, pass string) (*User, error)
- type User
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetByEmail ¶
func (*Service) GetByEmailWithPasswordCheck ¶
func (*Service) Register ¶
Register registers user via email. If user already exists, return User and ErrAlreadyExists
func (*Service) ResolveWithGoogle ¶
Click to show internal directories.
Click to hide internal directories.