Documentation ¶
Index ¶
- func GenerateUniqueCode() string
- func GetURLByCode(code string) (string, error)
- func GetURLFromCodeIfNotExpired(code string) (string, error)
- func Init()
- func InsertURLAndCode(url string, code string) error
- func IsExpiredCode(code string) (bool, error)
- func RedirectURL(c *gin.Context)
- func ShortenURL(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUniqueCode ¶
func GenerateUniqueCode() string
func GetURLByCode ¶
func InsertURLAndCode ¶
func IsExpiredCode ¶
func RedirectURL ¶
func ShortenURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.