Documentation ¶
Index ¶
- func AddProductAdmin() gin.HandlerFunc
- func GetProducts() gin.HandlerFunc
- func HashPassword(passwd string) string
- func Login() gin.HandlerFunc
- func SearchProductByQuery() gin.HandlerFunc
- func Signup() gin.HandlerFunc
- func VerifyPassword(userPasswd, existingPasswd string) (bool, string)
- type Application
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProductAdmin ¶
func AddProductAdmin() gin.HandlerFunc
func GetProducts ¶
func GetProducts() gin.HandlerFunc
func HashPassword ¶
func Login ¶
func Login() gin.HandlerFunc
func SearchProductByQuery ¶
func SearchProductByQuery() gin.HandlerFunc
func Signup ¶
func Signup() gin.HandlerFunc
func VerifyPassword ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(productsCollectionName, usersCollectionName *mongo.Collection) *Application
func (*Application) AddToCart ¶
func (app *Application) AddToCart() gin.HandlerFunc
func (*Application) BuyFromCart ¶
func (app *Application) BuyFromCart() gin.HandlerFunc
func (*Application) InstantBuy ¶
func (app *Application) InstantBuy() gin.HandlerFunc
func (*Application) RemoveItem ¶
func (app *Application) RemoveItem() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.