Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortUrlService ¶
type ShortUrlService struct { repository.UrlRepository cache.UrlCache }
func NewShortUrlService ¶
func NewShortUrlService(u repository.UrlRepository, c cache.UrlCache) (*ShortUrlService, error)
func (ShortUrlService) CreateShortUrl ¶
func (s ShortUrlService) CreateShortUrl(o string) (string, error)
func (ShortUrlService) GetOriginalUrl ¶
func (s ShortUrlService) GetOriginalUrl(h string) (string, error)
Click to show internal directories.
Click to hide internal directories.