Documentation ¶
Index ¶
- func AddNewUserToDB(username, password, email string) bool
- func CheckIfUserIsAdmin(id int) bool
- func CreateGoodsInDB(label string, price int, desc string, image_link string, idcat int, ...) bool
- func DeleteGoodsFromCartById(userId int, goodsId int) bool
- func FetchUsernameAndLoginFromDB(username, password string) (bool, int)
- func GetAllGoodsFromDB() []model.Goods
- func GetEmailByUsername(username string) string
- func GetGoodsByCategoryFromDB(idcat int) []model.Goods
- func GetGoodsByIdFromDB(id int, idcat int) model.Goods
- func GetGoodsFromCartByUserId(userId int) []int
- func InsertGoodsByIdIntoUsersCartById(goodsId, userId int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewUserToDB ¶
func CheckIfUserIsAdmin ¶
func CreateGoodsInDB ¶
func DeleteGoodsFromCartById ¶
func GetAllGoodsFromDB ¶
func GetEmailByUsername ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.