Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShortUrlRepository ¶
type ShortUrlRepository interface { InsertShortenerUrl(fullUrl string, url string, click int) error SelectShortenerUrl(shortUrl string) (shortUrlInfo models.ShortUrl, err error) UpdateShortenerUrlClicks(shortUrl string) error }
func NewShortUrlRepository ¶
func NewShortUrlRepository(db *sqlx.DB) ShortUrlRepository
Click to show internal directories.
Click to hide internal directories.