controllers

package
v0.0.0-...-7bf37cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Users    = "Users"
	Products = "Products"
)

Variables

This section is empty.

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 GetItemFromCart

func GetItemFromCart() gin.HandlerFunc

func HashPassword

func HashPassword(password string) string

func LogIn

func LogIn() gin.HandlerFunc

func ProductViewerAdmin

func ProductViewerAdmin() gin.HandlerFunc

func SearchProduct

func SearchProduct() gin.HandlerFunc

func SearchProductByQuery

func SearchProductByQuery() gin.HandlerFunc

func SignUp

func SignUp() gin.HandlerFunc

func VerifyPassword

func VerifyPassword(userPassword string, givenPassword string) (bool, string)

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) ByFromCart

func (app *Application) ByFromCart() gin.HandlerFunc

func (*Application) InstantBuy

func (app *Application) InstantBuy() gin.HandlerFunc

func (*Application) RemoveItem

func (app *Application) RemoveItem() gin.HandlerFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL