package
Version:
v0.0.0-...-a5936d2
Opens a new window with list of versions in this module.
Published: Jul 22, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Url struct {
Id int `gorm:"PRIMARY_KEY;AUTO_INCREMENT;NOT NULL"`
FullUrl string `gorm:"type:VARCHAR(100);NOT NULL"`
ShortUrl string `gorm:"type:VARCHAR(50);NOT NULL"`
CreatedAt time.Time `gorm:"type:DATETIME;NOT NULL"`
ValidUntil time.Time `gorm:"type:DATETIME"`
MinutesValid int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.