repository

package
v0.0.0-...-263abf5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL