Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkRedirectRepository ¶
type LoginRepository ¶
type PasswordRepository ¶
type ShortLinkRepository ¶
type SignUpRepository ¶
type UserRepository ¶
type UserRepository interface { Create(user *models.User) error GetUserByEmail(email string) (models.User, error) GetUserByID(userID string) (models.User, error) GetUserWithLinks(userID string) (models.User, error) Delete(user *models.User) error EncryptPassword(password string) string VerifyPassword(hashPass, plainPass string) (bool, error) Save(user *models.User) error SendVerifyEmail(email string) error GetUserFromCache(key string) (models.User, error) CreateAccessToken(userID, email string) string }
Click to show internal directories.
Click to hide internal directories.