Documentation ¶
Index ¶
- func CheckUserLogin(username, password string) (bool, error)
- func CreateAlbum(shortcode, name, description string, createdby int, public bool) error
- func CreateFile(filename, originalFilename, hash string, createdby int) error
- func CreateUser(username, password string) error
- func DeleteAlbum(id int) error
- func GetAlbumFileCount(id int) (int, error)
- func OpenDB()
- func UpdateUser(id int, user User) error
- type Album
- type File
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserLogin ¶
func CreateAlbum ¶
func CreateFile ¶
func CreateUser ¶
func DeleteAlbum ¶
func GetAlbumFileCount ¶
func UpdateUser ¶
Types ¶
type Album ¶
type Album struct { ID int Shortcode string Name string Description string CreatedAt time.Time CreatedBy int Public bool }
func GetAlbumByShortcode ¶
func GetAlbumsByUser ¶
type File ¶
type File struct { ID int Filename string OriginalFilename string CreatedAt int64 CreatedBy int Hash string }
func GetFileByHash ¶
func GetFileByID ¶
func GetFileByName ¶
func GetFilesByUser ¶
Click to show internal directories.
Click to hide internal directories.