Documentation
¶
Index ¶
- Variables
- func AddShortUrl(shortUrl model.ShortURL, db *gorm.DB) error
- func InitDB(config *config.DBConf) *gorm.DB
- func IsDataExistError(err error) bool
- func MoveDeleteData(shortUrl model.ShortURL, tx *gorm.DB) error
- func QueryShortUrlByLangUrl(shortUrl model.ShortURL, db *gorm.DB) (string, error)
- func QueryUnexpiredUrl(shortUrl string, db *gorm.DB) (string, error)
- func TxAction(db *gorm.DB, txContext func(tx *gorm.DB) error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDataExist = errors.New("data exist")
Functions ¶
func IsDataExistError ¶
func QueryShortUrlByLangUrl ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.