Documentation ¶
Index ¶
Constants ¶
View Source
const CacheDuration = 6 * time.Hour
TODO: move to configuration file
Variables ¶
This section is empty.
Functions ¶
func RetrieveInitialUrl ¶
func SaveUrlMapping ¶
func SaveUrlMapping(shortUrl, originalUrl, userId string)
Types ¶
type StorageService ¶
type StorageService struct {
// contains filtered or unexported fields
}
func InitStorageService ¶
func InitStorageService() *StorageService
Click to show internal directories.
Click to hide internal directories.