Documentation
¶
Index ¶
- Constants
- func HashPassword(password string) ([]byte, error)
- func ParseStringToUuid(uuidAsString string) (uuid.UUID, error)
- func ResetCookie(name string, c *gin.Context)
- func SaveImageToCampaign(image FileUpload, campaignId uint, rawnNewFileName string) (string, error)
- func SetAuthJWTCookie(content AuthCookieContent, c *gin.Context) error
- type AuthCookieContent
- type FileUpload
Constants ¶
View Source
const AuthCookieName = "Session"
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
HashPassword Hash a models.User password
func ResetCookie ¶
func SaveImageToCampaign ¶
func SaveImageToCampaign(image FileUpload, campaignId uint, rawnNewFileName string) (string, error)
func SetAuthJWTCookie ¶
func SetAuthJWTCookie(content AuthCookieContent, c *gin.Context) error
Types ¶
type AuthCookieContent ¶
Click to show internal directories.
Click to hide internal directories.