Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DBClient *firestore.Client
DBClient is the firebase client
View Source
var ErrURLNotFound = fmt.Errorf("URL not found")
ErrURLNotFound is the common error message when an url is not found
Functions ¶
func AssociateURL ¶
func AssociateURL(url string) (*model.URLAssociation, error)
AssociateURL associates an URL to a unique id for short URL
func DisassociateURL ¶
DisassociateURL disassociates the URL associated to the requestd id if exists
func FindAllURLs ¶
func FindAllURLs() ([]*model.URLAssociation, error)
FindAllURLs return all the URLAssociations
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.