Documentation
¶
Index ¶
- Constants
- func CheckPassword(password, hash string) bool
- func DecodeImage(filename string) (string, error)
- func DecodeImageWithScaling(filename string) (string, error)
- func FindIntersection(arr1, arr2 []string) []string
- func HashPassword(password string) string
- func LoadEnv()
- func RandString(length int) string
- func ScaleImage(file *os.File) (image.Image, error)
- func ScheduledUpdate(ctx context.Context, pool *pgxpool.Pool, metrics *mymetrics.DatabaseMetrics) error
- func Validate(email, password string) []string
- func ValidateEmail(email string) error
- func WriteFile(file *multipart.FileHeader, folderName string) (string, error)
- func WriteResizedFile(file *multipart.FileHeader, folderName string) (string, error)
- func YuKassaUpdates() (*models.PaymentList, error)
Constants ¶
View Source
const ( ErrTooShort = "Password is too short" ErrTooLong = "Password is too long" ErrWrongFormat = "Password does not contain required symbols" ErrWrongEmailFormat = "Wrong email format" )
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func DecodeImage ¶
func DecodeImageWithScaling ¶
func FindIntersection ¶
func HashPassword ¶
func RandString ¶
func ScheduledUpdate ¶
func ValidateEmail ¶
func WriteResizedFile ¶
func WriteResizedFile(file *multipart.FileHeader, folderName string) (string, error)
func YuKassaUpdates ¶
func YuKassaUpdates() (*models.PaymentList, error)
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.