store

package
v0.0.0-...-b4ceb91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CacheDuration = 6 * time.Hour

Variables

This section is empty.

Functions

func RetrieveInitialUrl

func RetrieveInitialUrl(shortUrl string) string

We need to retrieve the original URL from the shortened URL.

func SaveUrlMapping

func SaveUrlMapping(shortUrl string, originalUrl string, userId string)

We need to save the mapping between the original URL and the shortened URL.

Types

type StorageService

type StorageService struct {
	// contains filtered or unexported fields
}

Define the struct wrapper around raw redis client

func InitStore

func InitStore() *StorageService

Initialize the store service and return a store pointer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL