Discover Packages
github.com/abdybaevae/url-shortener
pkg
models
package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Apr 3, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Algo struct {
Id int `db:"algo_id"`
Strategy string `db:"algo_strategy"`
NumberId int `db:"number_id"`
IncrementValue int `db:"increment_value"`
Dict string `db:"dict"`
}
type Key struct {
Id int `db:"key_id"`
Value string `db:"key_value"`
AlgoId int `db:"algo_id"`
}
type Link struct {
Id string `db:"link_id"`
Link string `db:"link_value"`
Key string `db:"key_value"`
CreatedAt time .Time `db:"created_at"`
VisitedAt time .Time `db:"visited_at"`
Visited bool `db:"visited"`
ExpiredAt time .Time `db:"expired_at"`
}
type Number struct {
Id int `db:"number_id"`
Value int `db:"number_value"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.