Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *pgxpool.Pool
database
Functions ¶
func AddUploadedFileInfo ¶
add a upload info
func UpdateUploadEnableByFileId ¶
get user data by username from users table
Types ¶
type Upload ¶
type Upload struct {
ID int
Filename string
Username string
CreatedAt string
Enable bool
FileKey string
}
uploads table data
func GetUploadByFileId ¶
get user data by username from users table
func GetUploadsByUsername ¶
TODO: Paginate data TODO: Config limit rate retrieve data on uploads table
Click to show internal directories.
Click to hide internal directories.