Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateURL ¶
func CreateURL(repository *storage.Repository) echo.HandlerFunc
CreateURL returns a handler to create an db record from the `full_url` form param of the request.
func RetrieveURL ¶
func RetrieveURL(repository *storage.Repository) echo.HandlerFunc
RetrieveURL returns a handler that retrieves the full URL from the `shortURL` request param. Returns a `Temporary Redirect` response with the result or `Not Found` if no match was found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.