Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLinkNotFound = errors.New("link not found") ErrShortLinkIsNotValid = errors.New("short link is not valid") ErrOriginalLinkIsTooLong = errors.New("original link is too long") ErrOriginalLinkIsNotValid = errors.New("original link is not valid") ErrEncodeError = errors.New("encode error") ErrStorageError = errors.New("storage error") )
Functions ¶
This section is empty.
Types ¶
type ShortenerService ¶
type ShortenerService struct {
// contains filtered or unexported fields
}
func NewShortenerService ¶
func (ShortenerService) GetFullLink ¶
func (srv ShortenerService) GetFullLink(shortLink string) (string, error)
func (ShortenerService) ShortenLink ¶
func (srv ShortenerService) ShortenLink(link string) (string, error)
Click to show internal directories.
Click to hide internal directories.