Documentation ¶
Index ¶
- type Handler
- type Store
- func (s *Store) CheckProvider(email string) (bool, string, error)
- func (s *Store) CreateUser(user types.User) error
- func (s *Store) DelayCodeWithinTime(email string, minutes int) (bool, error)
- func (s *Store) DeleteToken(userId int) error
- func (s *Store) DeleteUser(user *types.User) error
- func (s *Store) GetUserByEmail(email string) (*types.User, error)
- func (s *Store) GetUserByID(id int) (*types.User, error)
- func (s *Store) GetUserByName(name string) (*types.User, error)
- func (s *Store) GetUserBySearchName(name string) ([]types.User, error)
- func (s *Store) GetUserBySearchPhoneNumber(phoneNumber string) ([]types.User, error)
- func (s *Store) GetUserPasswordByEmail(email string) (string, error)
- func (s *Store) IsAccessTokenExist(userId int) (bool, error)
- func (s *Store) IsUserExist(email string) (bool, error)
- func (s *Store) ModifyUser(id int, user types.User) error
- func (s *Store) SaveToken(userId int, accessTokenDetails *types.TokenDetails, ...) error
- func (s *Store) SaveVerificationCode(email, code string, requestType int) error
- func (s *Store) UpdateAccessToken(userId int, accessTokenDetails *types.TokenDetails) error
- func (s *Store) UpdateFCMToken(id int, fcmToken string) error
- func (s *Store) UpdateLastLoggedIn(id int) error
- func (s *Store) UpdatePassword(id int, password string) error
- func (s *Store) UpdateProfilePicture(id int, profPicUrl string) error
- func (s *Store) UpdateVerificationCodeStatus(email string, status, reqType int) error
- func (s *Store) ValidateLoginCodeWithinTime(email, code string, minutes, reqType int) (bool, error)
- func (s *Store) ValidateUserAccessToken(w http.ResponseWriter, r *http.Request) (*types.User, error)
- func (s *Store) ValidateUserRefreshToken(refreshToken string) (*types.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) RegisterRoutes ¶
func (*Handler) RegisterUnprotectedRoutes ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DelayCodeWithinTime ¶
func (*Store) DeleteToken ¶
func (*Store) GetUserBySearchName ¶
func (*Store) GetUserBySearchPhoneNumber ¶
func (*Store) GetUserPasswordByEmail ¶
func (*Store) SaveToken ¶
func (s *Store) SaveToken(userId int, accessTokenDetails *types.TokenDetails, refreshTokenDetails *types.TokenDetails) error
func (*Store) SaveVerificationCode ¶
func (*Store) UpdateAccessToken ¶
func (s *Store) UpdateAccessToken(userId int, accessTokenDetails *types.TokenDetails) error
func (*Store) UpdateLastLoggedIn ¶
func (*Store) UpdateProfilePicture ¶
func (*Store) UpdateVerificationCodeStatus ¶
func (*Store) ValidateLoginCodeWithinTime ¶
func (*Store) ValidateUserAccessToken ¶
Click to show internal directories.
Click to hide internal directories.