helper

package
v0.0.0-...-636bd50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPassCode

func CheckPassCode(passCode, hashedPassCode string) bool

func ConnectDB

func ConnectDB()

func DeleteLinkByShortcode

func DeleteLinkByShortcode(shortcode string) error

func EncryptPassCode

func EncryptPassCode(passCode string) (string, error)

func GenerateShortCode

func GenerateShortCode(length int) string

func GetLinkByShortcode

func GetLinkByShortcode(shortcode string) (*models.Link, error)

func HashIP

func HashIP(ip string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL