Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UrlsRepository ¶
type UrlsRepository struct { // urls channel max length ChannelMaxLength int }
Urls repository struct
func (*UrlsRepository) GenerateShortUrls ¶
func (urlsRepository *UrlsRepository) GenerateShortUrls(Urls map[string]string, request *http.Request) (map[string]string, bool)
Generate short urls from the given long urls
func (*UrlsRepository) GetLongUrl ¶
func (urlsRepository *UrlsRepository) GetLongUrl(shortUrl string) (bool, string)
Get long url from the given short url
func (*UrlsRepository) GetLongUrls ¶
func (urlsRepository *UrlsRepository) GetLongUrls(body io.ReadCloser) map[string]string
Get long urls from given data
Click to show internal directories.
Click to hide internal directories.