Documentation
¶
Index ¶
- Constants
- func Create(db *gorm.DB, user *models.User) (uint, error)
- func ExtractToken(c *gin.Context) string
- func ExtractTokenID(c *gin.Context) (uint, error)
- func FindByEmail(db *gorm.DB, email string) (*models.User, error)
- func FindById(db *gorm.DB, id uint) (*models.User, error)
- func TokenValid(tokenString string) error
- type EmailAlreadyExistsError
- type EmailNotFoundError
Constants ¶
View Source
const (
UniqueConstraintUserEmail = "users_email_key"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractToken ¶
func TokenValid ¶
Types ¶
type EmailAlreadyExistsError ¶
type EmailAlreadyExistsError struct {
Email string
}
func (*EmailAlreadyExistsError) Error ¶
func (e *EmailAlreadyExistsError) Error() string
type EmailNotFoundError ¶
type EmailNotFoundError struct{}
func (*EmailNotFoundError) Error ¶
func (e *EmailNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.