Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleRedirect ¶
func HandleRedirect(logger *zap.SugaredLogger, tmpl *template.Template, manager storage.StoreManager) public.PublicRedirectHandlerFunc
HandleRedirect creates and /{shortenedURL} endpoint handler via a closure. It can perform redirects based on the shortened URL's Terse data. It will add visits to the VisitStore, if it exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.