Documentation ¶
Index ¶
- Variables
- func CheckPassword(password string, hashedPassword string) error
- func CreateDirectory(path string) error
- func HashPassword(password string) (string, error)
- func IsFileAlreadyExists(path string) bool
- func IsSupportedExtensions(ex string) bool
- func RandomEmail() string
- func RandomInt(min, max int64) int64
- func RandomString(n int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *slog.Logger
View Source
var (
SupportedVideoExtensions = []string{"mp4", "mov"}
)
Functions ¶
func CheckPassword ¶
CheckPassword checks if the provided password is correct or not
func CreateDirectory ¶
CreateDirectory creates a directory if it does not exist
func HashPassword ¶
HashPassword returns the bcrypt hash of the password
func IsFileAlreadyExists ¶
IsFileAlreadyExists checks if a file exists
func IsSupportedExtensions ¶
IsSupportedExtensions checks if the extension is supported by walking through SupportedVideoExtensions
func RandomString ¶
RandomString generates a random string of length n
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.