Documentation ¶
Index ¶
- Variables
- func AuthUser(configData *models.ConfigureUserData) error
- func Configure(configData *models.ConfigureUserData) (err error)
- func DeleteLink(id string) error
- func GetLink(id string) (link models.CachedLink, err error)
- func GetLinks(limit, offset int) (links []models.LinkWithStats, count int, err error)
- func InsertClick(click *models.Click) (err error)
- func IsConfigured() bool
- func SaveLink(link models.CachedLink) error
- func UpdateLink(oldID string, link models.CachedLink) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyConfigured = errors.New("already configured")
View Source
var ErrLinkNotFound = errors.New("url(s) not found")
View Source
var ErrMultipleRowAffected = errors.New("multiple rows affected")
View Source
var ErrNoRowsAffected = errors.New("no rows affected")
View Source
var ErrNotConfigured = errors.New("not configured")
View Source
var ErrWrongPassword = errors.New("wrong password")
View Source
var ErrWrongUsername = errors.New("wrong username")
Functions ¶
func AuthUser ¶
func AuthUser(configData *models.ConfigureUserData) error
func Configure ¶
func Configure(configData *models.ConfigureUserData) (err error)
func DeleteLink ¶
func GetLinks ¶
func GetLinks(limit, offset int) (links []models.LinkWithStats, count int, err error)
func InsertClick ¶
func IsConfigured ¶
func IsConfigured() bool
func SaveLink ¶
func SaveLink(link models.CachedLink) error
func UpdateLink ¶
func UpdateLink(oldID string, link models.CachedLink) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.