Documentation ¶
Index ¶
- func AttachCookiesToResponse(env *core.Env, accessTokenJWT, refreshTokenJWT string, c *gin.Context)
- func CalculateDistance(lon1, lat1, lon2, lat2 float64) float64
- func CalculateMatchPercentage(wg *sync.WaitGroup, resultChan chan models.MatchCalculationResult, ...)
- func ConvertImageToBase64(input multipart.File) (string, error)
- func CoordinatesStringToPairFloat64(coordinates string) (float64, float64, error)
- func EmploymentIDToOrgIDUserEmail(empID string) (uint, string, error)
- func GetUserID(ctx *gin.Context) (string, error)
- func HashPassword(password string) (string, error)
- func NullUintToUint(u null.Uint) uint
- func PascalToSnake(input string) string
- func PlainAuth(username, password, host string) smtp.Auth
- func RemoveProfileImageAsync(wg *sync.WaitGroup, ctx context.Context, ik *imagekit.ImageKit, imageId string)
- func ResizeBase64ImageTo50x50(input string) (string, error)
- func SendVerificationEmailAsync(wg *sync.WaitGroup, ch chan error, env *core.Env, verificationToken string, ...)
- func StringArrayContains(stringArr []string, s string) bool
- func UploadProfileImageAsync(wg *sync.WaitGroup, ctx context.Context, ch chan models.ImageUploadResult, ...)
- func VerifyPassword(hashedPassword string, candidatePassword string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachCookiesToResponse ¶
func CalculateDistance ¶
CalculateDistance calculate the distance between 2 coordinates.
func CoordinatesStringToPairFloat64 ¶
CoordinatesStringToPairFloat64 convert coordinates (longitude, latitude) string to pair float64.
func HashPassword ¶
func NullUintToUint ¶
func NullUintToUint(u null.Uint) uint
func PascalToSnake ¶
PascalToSnake eg: given input as "UserID", output will be "user_id"
func RemoveProfileImageAsync ¶
func ResizeBase64ImageTo50x50 ¶
ResizeBase64ImageTo50x50 input format: "data:image/png;base64,iVBORw0KGg....="
func StringArrayContains ¶
func UploadProfileImageAsync ¶
func VerifyPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.