Documentation ¶
Overview ¶
Package store implements data persistence
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func (*Database) GetLongURL ¶
GetLongURL retrieves the destination/long url corresponding to short url slug
func (*Database) GetURLMetrics ¶
GetURLMetrics retrieves the number of times a short url has been accessed
func (*Database) SaveURLMapping ¶
SaveURLMapping insert new short url slug to long url entry
Click to show internal directories.
Click to hide internal directories.