package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 17, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func (Healthz) Handle ¶
Handle shows server is up and running.
nolint: wrapcheck
func (h Healthz) Register(g *echo.Group)
Register registers the routes of healthz handler on given echo group.
URL handles interaction with URLs.
func (h URL) Count(c echo.Context) error
Count retrieves the access count for the given short URL.
nolint: wrapcheck
func (h URL) Create(c echo.Context) error
Create generates short URL and save it on database.
nolint: wrapcheck
func (h URL) Register(g *echo.Group)
Register registers the routes of URL handler on given group.
func (h URL) Retrieve(c echo.Context) error
Retrieve retrieves URL for given short URL and redirect to it.
nolint: wrapcheck
Source Files
¶
Click to show internal directories.
Click to hide internal directories.