Documentation ¶
Index ¶
- Variables
- func AddAddress() gin.HandlerFunc
- func DeleteAddress() gin.HandlerFunc
- func EditHomeAddress() gin.HandlerFunc
- func EditWorkAddress() gin.HandlerFunc
- func HashPassword(password string) string
- func Login() gin.HandlerFunc
- func ProductViewAdmin() gin.HandlerFunc
- func SearchProduct() gin.HandlerFunc
- func SearchProductByQuery() gin.HandlerFunc
- func SignUp() gin.HandlerFunc
- func VerifyPassword(userPassword string, givenPassword string) (bool, string)
- type Application
Constants ¶
This section is empty.
Variables ¶
View Source
var ProductCollection = database.UserData(database.Client, "Products")
View Source
var UserCollection = database.UserData(database.Client, "Users")
View Source
var Validate = validator.New()
Functions ¶
func AddAddress ¶
func AddAddress() gin.HandlerFunc
func DeleteAddress ¶
func DeleteAddress() gin.HandlerFunc
func EditHomeAddress ¶
func EditHomeAddress() gin.HandlerFunc
func EditWorkAddress ¶
func EditWorkAddress() gin.HandlerFunc
func HashPassword ¶
func Login ¶
func Login() gin.HandlerFunc
func ProductViewAdmin ¶
func ProductViewAdmin() gin.HandlerFunc
func SearchProduct ¶
func SearchProduct() gin.HandlerFunc
func SearchProductByQuery ¶
func SearchProductByQuery() gin.HandlerFunc
func SignUp ¶
func SignUp() gin.HandlerFunc
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(prodCollection, userCollection *mongo.Collection) *Application
func (*Application) AddToCart ¶
func (app *Application) AddToCart() gin.HandlerFunc
func (*Application) BuyFromCart ¶
func (app *Application) BuyFromCart() gin.HandlerFunc
func (*Application) GetItemFromCart ¶
func (app *Application) GetItemFromCart() 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.