Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URLService ¶
type URLService interface {
GenerateShortURL(longURL string) (shortURL string, err error)
GetLongURL(shortURL string) (string, error)
}
URLService - interface for working with url data
func NewURLService ¶
func NewURLService(idGenerator generator.Snowflake, cache cache.LRUCache, rep repositories.URLDataService) URLService
NewURLService - create new urlService instance and returning UrlService interface for interact with it
Click to show internal directories.
Click to hide internal directories.