Documentation
¶
Index ¶
- type DB
- func (db *DB) CreateUser(username, email, password string) (*User, error)
- func (db *DB) DeleteURL(id int64) error
- func (db *DB) GetURL(key string) (*URL, error)
- func (db *DB) GetURLByID(id int64) (*URL, error)
- func (db *DB) GetURLsByUserID(userID int64) ([]URL, error)
- func (db *DB) GetUserByUsername(username string) (*User, error)
- func (db *DB) IncrementClicks(urlID int64) error
- func (db *DB) InsertURL(url, key string, userID int64, password string, qrCode string) error
- func (db *DB) UpdateURL(id int64, url string, password string) error
- type URL
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.