Documentation ¶
Index ¶
- type Service
- func (s *Service) CreateOne(ctx context.Context, user domain.UserForm) (domain.UserRepoModel, error)
- func (s *Service) GenerateToken(secret []byte, email string) (token string, err error)
- func (s *Service) GetByEmail(ctx context.Context, email string) (user domain.UserRepoModel, ok bool, err error)
- func (s *Service) ValidatePassword(pwd string) error
- func (s *Service) ValidateToken(secret []byte, token string) (email string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GenerateToken ¶
func (*Service) GetByEmail ¶
func (*Service) ValidatePassword ¶
Click to show internal directories.
Click to hide internal directories.