Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCustomLink ¶
func CreateCustomLink(rdb *redis.Client) fiber.Handler
Handler for creating custom Links parses request body and creates new link with custom name if the name is still available
func CreateLink ¶
func CreateLink(rdb *redis.Client) fiber.Handler
Handler for creating Links parses request body and creates new link
func GetClicks ¶
func GetClicks(rdb *redis.Client) fiber.Handler
Handler for getting Link information looks up link by code and returns shortcoe, url and click count
func RedirectLink ¶
func RedirectLink(rdb *redis.Client) fiber.Handler
Handler for redirecting to original URL looks up link by code and redirects user to original URL
func SetupRoutes ¶
func SetupRoutes(app *fiber.App, rdb *redis.Client)
SetupRoutes sets up all the routes for the API
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.