Documentation ¶
Index ¶
- Variables
- func Generator(longURL string) (shortURL string, err error)
- func Health() (status bool, err error)
- func Hits(uuid string) (daily, weekly, total int64, err error)
- func Redirect(uuid string) (longURL string, err error)
- func SetConfig(cfg configuration.Config)
- func SetDatabaseInterface(dBase Database)
- type Database
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBadInput is error for bad input ErrBadInput error // ErrInvalidURL is error for invalid URL ErrInvalidURL error // ErrInsertFailed is error for insert error ErrInsertFailed error // ErrInvalidUUID is error for invalid UUID ErrInvalidUUID error // ErrUUIDNotFound is error for UUID not found in the DB ErrUUIDNotFound error )
Functions ¶
func SetDatabaseInterface ¶
func SetDatabaseInterface(dBase Database)
SetDatabaseInterface sets DB interface
Types ¶
Click to show internal directories.
Click to hide internal directories.